Kaynağa Gözat

text and grammar revision

Emanuele Marchi 10 yıl önce
ebeveyn
işleme
78ed8380b2

+ 2 - 2
.gitignore

@@ -1,5 +1,5 @@
-.grunt
 npm-debug.log
 npm-debug.log
 node_modules
 node_modules
 components
 components
-.DS_Store
+test.html
+.DS_Store

+ 1 - 1
README.md

@@ -3,7 +3,7 @@
 [![devDependency Status](https://david-dm.org/nostalgiaz/bootstrap-switch/dev-status.svg?style=flat)](https://david-dm.org/nostalgiaz/bootstrap-switch#info=devDependencies)
 [![devDependency Status](https://david-dm.org/nostalgiaz/bootstrap-switch/dev-status.svg?style=flat)](https://david-dm.org/nostalgiaz/bootstrap-switch#info=devDependencies)
 [![NPM Version](http://img.shields.io/npm/v/bootstrap-switch.svg?style=flat)](https://www.npmjs.org/)
 [![NPM Version](http://img.shields.io/npm/v/bootstrap-switch.svg?style=flat)](https://www.npmjs.org/)
 
 
-Turn checkboxes and radio buttons in toggle switches.
+Turn checkboxes and radio buttons into toggle switches.
 
 
 ## Demo and Documentation
 ## Demo and Documentation
 
 

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "bootstrap-switch",
   "name": "bootstrap-switch",
-  "description": "Turn checkboxes and radio buttons in toggle switches.",
+  "description": "Turn checkboxes and radio buttons into toggle switches.",
   "version": "3.3.2",
   "version": "3.3.2",
   "main": [
   "main": [
     "./dist/js/bootstrap-switch.js",
     "./dist/js/bootstrap-switch.js",

+ 1 - 1
composer.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "components/bootstrap-switch",
   "name": "components/bootstrap-switch",
-  "description": "Turn checkboxes and radio buttons in toggle switches.",
+  "description": "Turn checkboxes and radio buttons into toggle switches.",
   "version": "3.3.2",
   "version": "3.3.2",
   "type": "component",
   "type": "component",
   "keywords": [
   "keywords": [

+ 5 - 5
documentation-2.html

@@ -4,9 +4,9 @@
     <meta charset="utf-8">
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
+    <meta name="description" content="Turn checkboxes and radio buttons into toggle switches.">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
-    <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
+    <title>Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches</title>
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
@@ -63,7 +63,7 @@
           <div class="alert alert-warning">
           <div class="alert alert-warning">
             <p>
             <p>
               All the options are accepted only using <code>data-*</code> attributes on the element.<br>
               All the options are accepted only using <code>data-*</code> attributes on the element.<br>
-              <code>checked</code>, <code>disabled</code> and <code>readonly</code> are exception to the rule, being
+              <code>checked</code>, <code>disabled</code> and <code>readonly</code> are exceptions to the rule, being
               default HTML input attributes.<br>
               default HTML input attributes.<br>
               Therefore, there is not any way to specify the options in JavaScript during initialization.
               Therefore, there is not any way to specify the options in JavaScript during initialization.
             </p>
             </p>
@@ -297,9 +297,9 @@
         <div id="events">
         <div id="events">
           <h2 class="page-header">Events</h2>
           <h2 class="page-header">Events</h2>
           <p>
           <p>
-            The only event triggered it <code>switch-change</code>. It returns two parameters: <code>event</code> and
+            The only event triggered is <code>switch-change</code>. It returns two parameters: <code>event</code> and
             <code>data</code>.<br>
             <code>data</code>.<br>
-            The latter is an object that include <code>el</code> (the input DOM element) and <code>value</code> (the
+            The latter is an object that includes <code>el</code> (the input DOM element) and <code>value</code> (the
             new input state)
             new input state)
           </p>
           </p>
         </div>
         </div>

+ 3 - 3
events.html

@@ -4,9 +4,9 @@
     <meta charset="utf-8">
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
+    <meta name="description" content="Turn checkboxes and radio buttons into toggle switches.">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
-    <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
+    <title>Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches</title>
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
@@ -60,7 +60,7 @@
         <p>
         <p>
           All the events are namespaced, therefore always append <code>.bootstrapSwitch</code> when you
           All the events are namespaced, therefore always append <code>.bootstrapSwitch</code> when you
           attach your handlers.<br>
           attach your handlers.<br>
-          You can register to the emitted events as follow:
+          You can register to the emitted events as follows:
         </p>
         </p>
         <pre><code>$('input[name="my-checkbox"]').on('switchChange.bootstrapSwitch', function(event, state) {
         <pre><code>$('input[name="my-checkbox"]').on('switchChange.bootstrapSwitch', function(event, state) {
   console.log(this); // DOM element
   console.log(this); // DOM element

+ 2 - 2
examples.html

@@ -4,9 +4,9 @@
     <meta charset="utf-8">
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
+    <meta name="description" content="Turn checkboxes and radio buttons into toggle switches.">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
-    <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
+    <title>Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches</title>
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">

+ 2 - 2
index.html

@@ -4,9 +4,9 @@
     <meta charset="utf-8">
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
+    <meta name="description" content="Turn checkboxes and radio buttons into toggle switches.">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
-    <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
+    <title>Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches</title>
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">

+ 2 - 2
main.html

@@ -4,9 +4,9 @@
     <meta charset="utf-8">
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
+    <meta name="description" content="Turn checkboxes and radio buttons into toggle switches.">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
-    <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
+    <title>Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches</title>
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">

+ 4 - 4
methods.html

@@ -4,9 +4,9 @@
     <meta charset="utf-8">
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
+    <meta name="description" content="Turn checkboxes and radio buttons into toggle switches.">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
-    <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
+    <title>Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches</title>
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
@@ -58,7 +58,7 @@
       </div>
       </div>
       <div class="container">
       <div class="container">
         <p>In Bootstrap Switch, every option is also a method.</p>
         <p>In Bootstrap Switch, every option is also a method.</p>
-        <p>If the second parameter is omitted, the method return the current value.</p>
+        <p>If the second parameter is omitted, the method returns the current value.</p>
         <p>You can invoke methods as follows:</p>
         <p>You can invoke methods as follows:</p>
         <pre><code>$('input[name="my-checkbox"]').bootstrapSwitch('state', true, true);</code></pre>
         <pre><code>$('input[name="my-checkbox"]').bootstrapSwitch('state', true, true);</code></pre>
         <h2>Additional Methods</h2>
         <h2>Additional Methods</h2>
@@ -104,7 +104,7 @@
         <ul>
         <ul>
           <li>The method <code>state</code> can receive an optional third parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.</li>
           <li>The method <code>state</code> can receive an optional third parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.</li>
           <li>The method <code>toggleState</code> can receive an optional second parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.</li>
           <li>The method <code>toggleState</code> can receive an optional second parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.</li>
-          <li>The method <code>wrapperClass</code> can accepts a falsy value as second parameter. If so, it resets the class to its default.</li>
+          <li>The method <code>wrapperClass</code> can accept a falsy value as second parameter. If so, it resets the class to its default.</li>
         </ul>
         </ul>
       </div>
       </div>
     </main>
     </main>

+ 2 - 2
options.html

@@ -4,9 +4,9 @@
     <meta charset="utf-8">
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
+    <meta name="description" content="Turn checkboxes and radio buttons into toggle switches.">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
     <meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
-    <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
+    <title>Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches</title>
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/bootstrap.min.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="docs/css/highlight.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
     <link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "bootstrap-switch",
   "name": "bootstrap-switch",
-  "description": "Turn checkboxes and radio buttons in toggle switches.",
+  "description": "Turn checkboxes and radio buttons into toggle switches.",
   "version": "3.3.2",
   "version": "3.3.2",
   "keywords": [
   "keywords": [
     "bootstrap",
     "bootstrap",

+ 3 - 3
src/docs/jade/documentation-2.jade

@@ -13,7 +13,7 @@ block content
       .alert.alert-warning
       .alert.alert-warning
         p
         p
           | All the options are accepted only using <code>data-*</code> attributes on the element.<br>
           | All the options are accepted only using <code>data-*</code> attributes on the element.<br>
-          | <code>checked</code>, <code>disabled</code> and <code>readonly</code> are exception to the rule, being
+          | <code>checked</code>, <code>disabled</code> and <code>readonly</code> are exceptions to the rule, being
           | default HTML input attributes.<br>
           | default HTML input attributes.<br>
           | Therefore, there is not any way to specify the options in JavaScript during initialization.
           | Therefore, there is not any way to specify the options in JavaScript during initialization.
 
 
@@ -209,7 +209,7 @@ block content
       h2.page-header Events
       h2.page-header Events
 
 
       p
       p
-        | The only event triggered it <code>switch-change</code>. It returns two parameters: <code>event</code> and
+        | The only event triggered is <code>switch-change</code>. It returns two parameters: <code>event</code> and
         | <code>data</code>.<br>
         | <code>data</code>.<br>
-        | The latter is an object that include <code>el</code> (the input DOM element) and <code>value</code> (the
+        | The latter is an object that includes <code>el</code> (the input DOM element) and <code>value</code> (the
         | new input state)
         | new input state)

+ 1 - 1
src/docs/jade/events.jade

@@ -9,7 +9,7 @@ block content
     p
     p
       | All the events are namespaced, therefore always append <code>.bootstrapSwitch</code> when you
       | All the events are namespaced, therefore always append <code>.bootstrapSwitch</code> when you
       | attach your handlers.<br>
       | attach your handlers.<br>
-      | You can register to the emitted events as follow:
+      | You can register to the emitted events as follows:
 
 
     pre: code
     pre: code
       | $('input[name="my-checkbox"]').on('switchChange.bootstrapSwitch', function(event, state) {
       | $('input[name="my-checkbox"]').on('switchChange.bootstrapSwitch', function(event, state) {

+ 2 - 2
src/docs/jade/main.jade

@@ -4,9 +4,9 @@ html(lang='en')
     meta(charset='utf-8')
     meta(charset='utf-8')
     meta(http-equiv='X-UA-Compatible', content='IE=edge')
     meta(http-equiv='X-UA-Compatible', content='IE=edge')
     meta(name='viewport', content='width=device-width, initial-scale=1.0')
     meta(name='viewport', content='width=device-width, initial-scale=1.0')
-    meta(name='description', content='Turn checkboxes and radio buttons in toggle switches.')
+    meta(name='description', content='Turn checkboxes and radio buttons into toggle switches.')
     meta(name='author', content='Mattia Larentis, Emanuele Marchi and Peter Stein')
     meta(name='author', content='Mattia Larentis, Emanuele Marchi and Peter Stein')
-    title Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches
+    title Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches
     link(href='docs/css/bootstrap.min.css', rel='stylesheet')
     link(href='docs/css/bootstrap.min.css', rel='stylesheet')
     link(href='docs/css/highlight.css', rel='stylesheet')
     link(href='docs/css/highlight.css', rel='stylesheet')
     link(href='dist/css/bootstrap3/bootstrap-switch.css', rel='stylesheet')
     link(href='dist/css/bootstrap3/bootstrap-switch.css', rel='stylesheet')

+ 2 - 2
src/docs/jade/methods.jade

@@ -7,7 +7,7 @@ block content
 
 
   .container
   .container
     p In Bootstrap Switch, every option is also a method.
     p In Bootstrap Switch, every option is also a method.
-    p If the second parameter is omitted, the method return the current value.
+    p If the second parameter is omitted, the method returns the current value.
     p You can invoke methods as follows:
     p You can invoke methods as follows:
     pre: code $('input[name="my-checkbox"]').bootstrapSwitch('state', true, true);
     pre: code $('input[name="my-checkbox"]').bootstrapSwitch('state', true, true);
 
 
@@ -46,4 +46,4 @@ block content
     ul
     ul
       li The method <code>state</code> can receive an optional third parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.
       li The method <code>state</code> can receive an optional third parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.
       li The method <code>toggleState</code> can receive an optional second parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.
       li The method <code>toggleState</code> can receive an optional second parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.
-      li The method <code>wrapperClass</code> can accepts a falsy value as second parameter. If so, it resets the class to its default.
+      li The method <code>wrapperClass</code> can accept a falsy value as second parameter. If so, it resets the class to its default.