Permalink
Browse files

add jqurey quickstart

  • Loading branch information...
1 parent 6eb7a0c commit baa55b75f030da878e17f72b19044319e50e2504 @ragingwind ragingwind committed Sep 23, 2014
Showing with 14,695 additions and 0 deletions.
  1. +13 −0 .editorconfig
  2. +1 −0 .gitattributes
  3. +3 −0 .gitignore
  4. +17 −0 .jshintrc
  5. +39 −0 LICENSE
  6. BIN app/favicon.ico
  7. +38 −0 app/index.html
  8. +15 −0 app/scripts/main.js
  9. +47 −0 app/styles/main.css
  10. +8 −0 bower.json
  11. +14 −0 bower_components/chosen/.bower.json
  12. BIN bower_components/chosen/chosen-sprite.png
  13. BIN bower_components/chosen/chosen-sprite@2x.png
  14. +435 −0 bower_components/chosen/chosen.css
  15. +1,211 −0 bower_components/chosen/chosen.jquery.js
  16. +2 −0 bower_components/chosen/chosen.jquery.min.js
  17. +3 −0 bower_components/chosen/chosen.min.css
  18. +1,231 −0 bower_components/chosen/chosen.proto.js
  19. +2 −0 bower_components/chosen/chosen.proto.min.js
  20. BIN bower_components/chosen/docsupport/chosen.png
  21. BIN bower_components/chosen/docsupport/oss-credit.png
  22. +108 −0 bower_components/chosen/docsupport/prism.css
  23. +9 −0 bower_components/chosen/docsupport/prism.js
  24. +203 −0 bower_components/chosen/docsupport/style.css
  25. +1,479 −0 bower_components/chosen/index.html
  26. +1,483 −0 bower_components/chosen/index.proto.html
  27. +269 −0 bower_components/chosen/options.html
  28. +37 −0 bower_components/jquery/.bower.json
  29. +21 −0 bower_components/jquery/MIT-LICENSE.txt
  30. +27 −0 bower_components/jquery/bower.json
  31. +806 −0 bower_components/jquery/src/ajax.js
  32. +89 −0 bower_components/jquery/src/ajax/jsonp.js
  33. +75 −0 bower_components/jquery/src/ajax/load.js
  34. +13 −0 bower_components/jquery/src/ajax/parseJSON.js
  35. +28 −0 bower_components/jquery/src/ajax/parseXML.js
  36. +64 −0 bower_components/jquery/src/ajax/script.js
  37. +5 −0 bower_components/jquery/src/ajax/var/nonce.js
  38. +3 −0 bower_components/jquery/src/ajax/var/rquery.js
  39. +135 −0 bower_components/jquery/src/ajax/xhr.js
  40. +11 −0 bower_components/jquery/src/attributes.js
  41. +143 −0 bower_components/jquery/src/attributes/attr.js
  42. +158 −0 bower_components/jquery/src/attributes/classes.js
  43. +96 −0 bower_components/jquery/src/attributes/prop.js
  44. +35 −0 bower_components/jquery/src/attributes/support.js
  45. +163 −0 bower_components/jquery/src/attributes/val.js
  46. +205 −0 bower_components/jquery/src/callbacks.js
  47. +498 −0 bower_components/jquery/src/core.js
  48. +60 −0 bower_components/jquery/src/core/access.js
  49. +123 −0 bower_components/jquery/src/core/init.js
  50. +39 −0 bower_components/jquery/src/core/parseHTML.js
  51. +97 −0 bower_components/jquery/src/core/ready.js
  52. +4 −0 bower_components/jquery/src/core/var/rsingleTag.js
  53. +451 −0 bower_components/jquery/src/css.js
  54. +24 −0 bower_components/jquery/src/css/addGetHookIf.js
  55. +57 −0 bower_components/jquery/src/css/curCSS.js
  56. +70 −0 bower_components/jquery/src/css/defaultDisplay.js
  57. +15 −0 bower_components/jquery/src/css/hiddenVisibleSelectors.js
  58. +91 −0 bower_components/jquery/src/css/support.js
  59. +28 −0 bower_components/jquery/src/css/swap.js
  60. +3 −0 bower_components/jquery/src/css/var/cssExpand.js
  61. +5 −0 bower_components/jquery/src/css/var/getStyles.js
  62. +13 −0 bower_components/jquery/src/css/var/isHidden.js
  63. +3 −0 bower_components/jquery/src/css/var/rmargin.js
  64. +5 −0 bower_components/jquery/src/css/var/rnumnonpx.js
  65. +179 −0 bower_components/jquery/src/data.js
  66. +181 −0 bower_components/jquery/src/data/Data.js
  67. +20 −0 bower_components/jquery/src/data/accepts.js
  68. +5 −0 bower_components/jquery/src/data/var/data_priv.js
  69. +5 −0 bower_components/jquery/src/data/var/data_user.js
  70. +149 −0 bower_components/jquery/src/deferred.js
  71. +13 −0 bower_components/jquery/src/deprecated.js
  72. +50 −0 bower_components/jquery/src/dimensions.js
  73. +649 −0 bower_components/jquery/src/effects.js
  74. +114 −0 bower_components/jquery/src/effects/Tween.js
  75. +13 −0 bower_components/jquery/src/effects/animatedSelector.js
  76. +868 −0 bower_components/jquery/src/event.js
  77. +39 −0 bower_components/jquery/src/event/alias.js
  78. +9 −0 bower_components/jquery/src/event/support.js
  79. +24 −0 bower_components/jquery/src/exports/amd.js
  80. +32 −0 bower_components/jquery/src/exports/global.js
  81. +44 −0 bower_components/jquery/src/intro.js
  82. +36 −0 bower_components/jquery/src/jquery.js
  83. +582 −0 bower_components/jquery/src/manipulation.js
  84. +18 −0 bower_components/jquery/src/manipulation/_evalUrl.js
  85. +31 −0 bower_components/jquery/src/manipulation/support.js
  86. +3 −0 bower_components/jquery/src/manipulation/var/rcheckableType.js
  87. +204 −0 bower_components/jquery/src/offset.js
  88. +1 −0 bower_components/jquery/src/outro.js
  89. +142 −0 bower_components/jquery/src/queue.js
  90. +22 −0 bower_components/jquery/src/queue/delay.js
  91. +172 −0 bower_components/jquery/src/selector-native.js
  92. +14 −0 bower_components/jquery/src/selector-sizzle.js
  93. +1 −0 bower_components/jquery/src/selector.js
  94. +111 −0 bower_components/jquery/src/serialize.js
  95. +200 −0 bower_components/jquery/src/traversing.js
  96. +100 −0 bower_components/jquery/src/traversing/findFilter.js
  97. +6 −0 bower_components/jquery/src/traversing/var/rneedsContext.js
  98. +3 −0 bower_components/jquery/src/var/arr.js
  99. +4 −0 bower_components/jquery/src/var/class2type.js
  100. +5 −0 bower_components/jquery/src/var/concat.js
  101. +5 −0 bower_components/jquery/src/var/hasOwn.js
  102. +5 −0 bower_components/jquery/src/var/indexOf.js
  103. +3 −0 bower_components/jquery/src/var/pnum.js
  104. +5 −0 bower_components/jquery/src/var/push.js
  105. +3 −0 bower_components/jquery/src/var/rnotwhite.js
  106. +5 −0 bower_components/jquery/src/var/slice.js
  107. +3 −0 bower_components/jquery/src/var/strundefined.js
  108. +4 −0 bower_components/jquery/src/var/support.js
  109. +5 −0 bower_components/jquery/src/var/toString.js
  110. +78 −0 bower_components/jquery/src/wrap.js
  111. +152 −0 gulpfile.js
  112. +33 −0 package.json
  113. +15 −0 readme.md
View
@@ -0,0 +1,13 @@
+# editorconfig.org
+root = true
+
+[*]
+indent_style = space
+indent_size = 4
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false
View
@@ -0,0 +1 @@
+* text=auto
View
@@ -0,0 +1,3 @@
+node_modules
+dist
+.tmp
View
@@ -0,0 +1,17 @@
+{
+ "node": true,
+ "browser": true,
+ "esnext": true,
+ "bitwise": true,
+ "camelcase": true,
+ "curly": true,
+ "eqeqeq": true,
+ "immed": true,
+ "indent": 4,
+ "newcap": true,
+ "noarg": true,
+ "quotmark": "single",
+ "undef": true,
+ "unused": "vars",
+ "strict": true
+}
View
@@ -0,0 +1,39 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 KISA
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+gulpfile.js
+===========
+
+Web Starter Kit
+Copyright 2014 Google Inc. All rights reserved.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License
View
Binary file not shown.
View
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Quckstart for jQuery</title>
+ <meta name="description" content="">
+ <link rel="shortcut icon" href="/favicon.ico">
+ <link rel="stylesheet" href="styles/main.css">
+ <link rel="stylesheet" href="bower_components/chosen/chosen.css">
+</head>
+<body>
+ <div class="container">
+ <div class="jumbotron">
+ <h1 id="slogan">Hello, Quick start</h1>
+ <p class="lead"></p>
+ </div>
+ <div class="row">
+ <h4>Input box</h4>
+ <input type="text" id="typing"></input>
+ </div>
+ <div class="row">
+ <h4>Select with <a href="http://goo.gl/TgKzj">chosen</a> plugin</h4>
+ <select class="chosen-select" data-placeholder="Select words..." style="width:350px;" tabindex="1">
+ <option value=""></option>
+ <option value="Hello">Hello</option>
+ <option value="Quickstart">Quickstart</option>
+ <option value="jQuery">jQuery</option>
+ <option value="HTML5">HTML5</option>
+ <option value="WebFrameworks">WebFrameworks</option>
+ </select>
+ </div>
+ </div>
+
+ <script src="bower_components/jquery/dist/jquery.js"></script>
+ <script src="bower_components/chosen/chosen.jquery.js"></script>
+ <script src="scripts/main.js"></script>
+</body>
+</html>
View
@@ -0,0 +1,15 @@
+// Update slogan text by append method
+$('#slogan').append(' with jQuery').show();
+
+// Update slogan text by chosen APIs
+$('.chosen-select').chosen().change(function (q, e) {
+ $('#slogan').text(e.selected);
+});
+
+// Update slogan text by input text
+$('#typing').keypress('keyup', function(e){
+ if (e.which == 13) {
+ $('#slogan').text(this.value);
+ this.value = '';
+ }
+});
View
@@ -0,0 +1,47 @@
+html, body {
+ margin: 0;
+ padding: 10px;
+ font-family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
+}
+
+.container {
+ padding-right: 15px;
+ padding-left: 15px;
+ padding-top: 15px;
+ margin-right: auto;
+ margin-left: auto;
+ max-width: 730px;
+}
+
+.jumbotron {
+ padding-top: 48px;
+ padding-bottom: 48px;
+ padding-right: 64px;
+ padding-left: 64px;
+ margin-bottom: 30px;
+ background-color: #eee;
+ text-align: center;
+ border-bottom: 1px solid #e5e5e5;
+ border-radius: 6px;
+}
+
+.row {
+ margin: 30px 0;
+}
+
+.row {
+ position: relative;
+ min-height: 1px;
+ padding-right: 15px;
+ padding-left: 15px;
+}
+
+h4 {
+ font-size: 18px;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ font-family: inherit;
+ font-weight: 500;
+ line-height: 1.1;
+ color: inherit;
+}
View
@@ -0,0 +1,8 @@
+{
+ "name": "quickstart-jquery",
+ "private": true,
+ "dependencies": {
+ "jquery": "~2.1.1",
+ "chosen": "https://github.com/harvesthq/chosen/releases/download/v1.1.0/chosen_v1.1.0.zip"
+ }
+}
@@ -0,0 +1,14 @@
+{
+ "name": "chosen",
+ "_cacheHeaders": {
+ "ETag": "\"face03d32045f0199c28994d51d2be79\"",
+ "Last-Modified": "Fri, 07 Feb 2014 04:02:15 GMT",
+ "Content-Length": "376005",
+ "Content-Type": "application/octet-stream",
+ "Content-Disposition": "attachment; filename=chosen_v1.1.0.zip"
+ },
+ "_release": "e-tag:face03d32",
+ "_source": "https://github.com/harvesthq/chosen/releases/download/v1.1.0/chosen_v1.1.0.zip",
+ "_target": "*",
+ "_originalSource": "https://github.com/harvesthq/chosen/releases/download/v1.1.0/chosen_v1.1.0.zip"
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit baa55b7

Please sign in to comment.