utopia-wiki 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/development.yml +62 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.yarnrc +1 -0
- data/Gemfile +4 -0
- data/README.md +46 -0
- data/bake/utopia/wiki.rb +13 -0
- data/lib/components/.yarn-integrity +19 -0
- data/lib/components/jquery-litebox/README.md +66 -0
- data/lib/components/jquery-litebox/bower.json +27 -0
- data/lib/components/jquery-litebox/dist/jquery.litebox.css +23 -0
- data/lib/components/jquery-litebox/dist/jquery.litebox.gallery.css +48 -0
- data/lib/components/jquery-litebox/dist/jquery.litebox.js +30 -0
- data/lib/components/jquery-litebox/example/index.html +69 -0
- data/lib/components/jquery-litebox/example/jquery.min.js +4 -0
- data/lib/components/jquery-litebox/example/sample_images/large/IMG_3340.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/large/IMG_3341.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/large/IMG_3344.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/large/IMG_3351.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3340.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3341.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3344.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3351.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/small/IMG_3340.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/small/IMG_3341.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/small/IMG_3344.jpg +0 -0
- data/lib/components/jquery-litebox/example/sample_images/small/IMG_3351.jpg +0 -0
- data/lib/components/jquery-litebox/package.json +29 -0
- data/lib/components/jquery-syntax/Gemfile +5 -0
- data/lib/components/jquery-syntax/LICENSE.txt +19 -0
- data/lib/components/jquery-syntax/NOTES.txt +20 -0
- data/lib/components/jquery-syntax/README.md +95 -0
- data/lib/components/jquery-syntax/Rakefile +211 -0
- data/lib/components/jquery-syntax/bower.json +25 -0
- data/lib/components/jquery-syntax/config.ru +4 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.apache.css +12 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.applescript.css +5 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.assembly.css +8 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.bash-script.css +6 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.bash.css +4 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.clang.css +6 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.css.css +14 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.diff.css +16 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.html.css +5 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.ocaml.css +3 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.protobuf.css +2 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.python.css +6 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.ruby.css +2 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.xml.css +18 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.core.css +58 -0
- data/lib/components/jquery-syntax/dist/base/jquery.syntax.editor.css +6 -0
- data/lib/components/jquery-syntax/dist/base/theme.js +1 -0
- data/lib/components/jquery-syntax/dist/bright/jquery.syntax.core.css +27 -0
- data/lib/components/jquery-syntax/dist/bright/theme.js +1 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.apache.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.applescript.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.assembly.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.bash-script.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.bash.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.basic.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.clang.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.csharp.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.css.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.diff.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.go.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.haskell.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.html.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.io.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.java.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.javascript.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.kai.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.lisp.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.lua.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.nginx.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ocaml.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ooc.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.pascal.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.perl5.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.php-script.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.php.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.plain.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.protobuf.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.python.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ruby.js +5 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.scala.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.smalltalk.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.sql.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.super-collider.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.swift.js +3 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.trenni.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.xml.js +4 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.brush.yaml.js +2 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.cache.js +7 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.core.js +34 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.editor.js +11 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.js +8 -0
- data/lib/components/jquery-syntax/dist/jquery.syntax.min.js +13 -0
- data/lib/components/jquery-syntax/dist/paper/jquery.syntax.core.css +31 -0
- data/lib/components/jquery-syntax/dist/paper/theme.js +1 -0
- data/lib/components/jquery-syntax/examples/ex.applescript.html +120 -0
- data/lib/components/jquery-syntax/examples/ex.asm.html +43 -0
- data/lib/components/jquery-syntax/examples/ex.bash.html +139 -0
- data/lib/components/jquery-syntax/examples/ex.clang.html +337 -0
- data/lib/components/jquery-syntax/examples/ex.css.html +48 -0
- data/lib/components/jquery-syntax/examples/ex.diff.html +1226 -0
- data/lib/components/jquery-syntax/examples/ex.editor.html +28 -0
- data/lib/components/jquery-syntax/examples/ex.html.html +134 -0
- data/lib/components/jquery-syntax/examples/ex.javascript.html +330 -0
- data/lib/components/jquery-syntax/examples/ex.ooc.html +119 -0
- data/lib/components/jquery-syntax/examples/ex.php.html +54 -0
- data/lib/components/jquery-syntax/examples/ex.python.html +1510 -0
- data/lib/components/jquery-syntax/examples/ex.ruby.html +358 -0
- data/lib/components/jquery-syntax/examples/ex.swift.html +90 -0
- data/lib/components/jquery-syntax/examples/index.css +18 -0
- data/lib/components/jquery-syntax/examples/jquery-1.6.min.js +16 -0
- data/lib/components/jquery-syntax/examples/tests.html +71 -0
- data/lib/components/jquery-syntax/examples/wrapping-flex.html +71 -0
- data/lib/components/jquery-syntax/examples/wrapping.html +181 -0
- data/lib/components/jquery-syntax/ext/closure/COPYING +202 -0
- data/lib/components/jquery-syntax/ext/closure/README +292 -0
- data/lib/components/jquery-syntax/ext/closure/compiler.jar +0 -0
- data/lib/components/jquery-syntax/ext/theme.rb +85 -0
- data/lib/components/jquery-syntax/install.yaml +9 -0
- data/lib/components/jquery-syntax/jQuery.Syntax.artx/Preview/preview.png +0 -0
- data/lib/components/jquery-syntax/jQuery.Syntax.artx/doc.thread +0 -0
- data/lib/components/jquery-syntax/package.json +31 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.apache.js +41 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.applescript.js +57 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.assembly.js +37 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.bash-script.js +67 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.bash.js +33 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.basic.js +51 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.clang.js +89 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.csharp.js +47 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.css.js +80 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.diff.js +24 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.go.js +47 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.haskell.js +45 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.html.js +66 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.io.js +45 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.java.js +45 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.javascript.js +42 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.kai.js +29 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.lisp.js +34 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.lua.js +44 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.nginx.js +30 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.ocaml.js +73 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.ooc.js +46 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.pascal.js +51 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.perl5.js +52 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.php-script.js +48 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.php.js +15 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.plain.js +10 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.protobuf.js +43 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.python.js +44 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.ruby.js +77 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.scala.js +44 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.smalltalk.js +29 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.sql.js +31 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.super-collider.js +57 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.swift.js +55 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.trenni.js +35 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.xml.js +50 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.brush.yaml.js +29 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.core.js +1114 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.editor.js +291 -0
- data/lib/components/jquery-syntax/source/jquery.syntax.js +258 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.apache.sass +23 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.applescript.sass +11 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.assembly.sass +16 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.bash-script.sass +14 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.bash.sass +11 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.clang.sass +12 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.css.sass +25 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.diff.sass +25 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.html.sass +12 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.ocaml.sass +8 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.protobuf.sass +7 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.python.sass +12 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.ruby.sass +9 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.xml.sass +30 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.core.sass +86 -0
- data/lib/components/jquery-syntax/themes/base/jquery.syntax.editor.sass +12 -0
- data/lib/components/jquery-syntax/themes/bright/_config.yaml +2 -0
- data/lib/components/jquery-syntax/themes/bright/jquery.syntax.core.sass +42 -0
- data/lib/components/jquery-syntax/themes/paper/_config.yaml +2 -0
- data/lib/components/jquery-syntax/themes/paper/jquery.syntax.core.sass +47 -0
- data/lib/components/jquery/AUTHORS.txt +327 -0
- data/lib/components/jquery/LICENSE.txt +20 -0
- data/lib/components/jquery/README.md +62 -0
- data/lib/components/jquery/bower.json +14 -0
- data/lib/components/jquery/dist/jquery.js +10872 -0
- data/lib/components/jquery/dist/jquery.min.js +2 -0
- data/lib/components/jquery/dist/jquery.min.map +1 -0
- data/lib/components/jquery/dist/jquery.slim.js +8777 -0
- data/lib/components/jquery/dist/jquery.slim.min.js +2 -0
- data/lib/components/jquery/dist/jquery.slim.min.map +1 -0
- data/lib/components/jquery/external/sizzle/LICENSE.txt +36 -0
- data/lib/components/jquery/external/sizzle/dist/sizzle.js +2478 -0
- data/lib/components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/lib/components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/lib/components/jquery/package.json +117 -0
- data/lib/components/jquery/src/ajax.js +873 -0
- data/lib/components/jquery/src/ajax/jsonp.js +103 -0
- data/lib/components/jquery/src/ajax/load.js +77 -0
- data/lib/components/jquery/src/ajax/script.js +74 -0
- data/lib/components/jquery/src/ajax/var/location.js +5 -0
- data/lib/components/jquery/src/ajax/var/nonce.js +5 -0
- data/lib/components/jquery/src/ajax/var/rquery.js +5 -0
- data/lib/components/jquery/src/ajax/xhr.js +170 -0
- data/lib/components/jquery/src/attributes.js +13 -0
- data/lib/components/jquery/src/attributes/attr.js +141 -0
- data/lib/components/jquery/src/attributes/classes.js +186 -0
- data/lib/components/jquery/src/attributes/prop.js +143 -0
- data/lib/components/jquery/src/attributes/support.js +33 -0
- data/lib/components/jquery/src/attributes/val.js +191 -0
- data/lib/components/jquery/src/callbacks.js +236 -0
- data/lib/components/jquery/src/core.js +400 -0
- data/lib/components/jquery/src/core/DOMEval.js +43 -0
- data/lib/components/jquery/src/core/access.js +72 -0
- data/lib/components/jquery/src/core/camelCase.js +23 -0
- data/lib/components/jquery/src/core/init.js +129 -0
- data/lib/components/jquery/src/core/isAttached.js +26 -0
- data/lib/components/jquery/src/core/nodeName.js +13 -0
- data/lib/components/jquery/src/core/parseHTML.js +65 -0
- data/lib/components/jquery/src/core/parseXML.js +30 -0
- data/lib/components/jquery/src/core/ready-no-deferred.js +97 -0
- data/lib/components/jquery/src/core/ready.js +86 -0
- data/lib/components/jquery/src/core/readyException.js +13 -0
- data/lib/components/jquery/src/core/stripAndCollapse.js +14 -0
- data/lib/components/jquery/src/core/support.js +20 -0
- data/lib/components/jquery/src/core/toType.js +20 -0
- data/lib/components/jquery/src/core/var/rsingleTag.js +7 -0
- data/lib/components/jquery/src/css.js +494 -0
- data/lib/components/jquery/src/css/addGetHookIf.js +26 -0
- data/lib/components/jquery/src/css/adjustCSS.js +74 -0
- data/lib/components/jquery/src/css/curCSS.js +65 -0
- data/lib/components/jquery/src/css/finalPropName.js +42 -0
- data/lib/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/lib/components/jquery/src/css/showHide.js +105 -0
- data/lib/components/jquery/src/css/support.js +133 -0
- data/lib/components/jquery/src/css/var/cssExpand.js +5 -0
- data/lib/components/jquery/src/css/var/getStyles.js +17 -0
- data/lib/components/jquery/src/css/var/isHiddenWithinTree.js +34 -0
- data/lib/components/jquery/src/css/var/rboxStyle.js +7 -0
- data/lib/components/jquery/src/css/var/rnumnonpx.js +7 -0
- data/lib/components/jquery/src/css/var/swap.js +26 -0
- data/lib/components/jquery/src/data.js +180 -0
- data/lib/components/jquery/src/data/Data.js +162 -0
- data/lib/components/jquery/src/data/var/acceptData.js +19 -0
- data/lib/components/jquery/src/data/var/dataPriv.js +7 -0
- data/lib/components/jquery/src/data/var/dataUser.js +7 -0
- data/lib/components/jquery/src/deferred.js +399 -0
- data/lib/components/jquery/src/deferred/exceptionHook.js +21 -0
- data/lib/components/jquery/src/deprecated.js +87 -0
- data/lib/components/jquery/src/deprecated/ajax-event-alias.js +22 -0
- data/lib/components/jquery/src/deprecated/event.js +48 -0
- data/lib/components/jquery/src/dimensions.js +57 -0
- data/lib/components/jquery/src/effects.js +701 -0
- data/lib/components/jquery/src/effects/Tween.js +125 -0
- data/lib/components/jquery/src/effects/animatedSelector.js +15 -0
- data/lib/components/jquery/src/event.js +892 -0
- data/lib/components/jquery/src/event/focusin.js +58 -0
- data/lib/components/jquery/src/event/support.js +11 -0
- data/lib/components/jquery/src/event/trigger.js +201 -0
- data/lib/components/jquery/src/exports/amd.js +26 -0
- data/lib/components/jquery/src/exports/global.js +34 -0
- data/lib/components/jquery/src/jquery.js +41 -0
- data/lib/components/jquery/src/manipulation.js +480 -0
- data/lib/components/jquery/src/manipulation/_evalUrl.js +32 -0
- data/lib/components/jquery/src/manipulation/buildFragment.js +106 -0
- data/lib/components/jquery/src/manipulation/getAll.js +32 -0
- data/lib/components/jquery/src/manipulation/setGlobalEval.js +22 -0
- data/lib/components/jquery/src/manipulation/support.js +41 -0
- data/lib/components/jquery/src/manipulation/var/rscriptType.js +5 -0
- data/lib/components/jquery/src/manipulation/var/rtagName.js +8 -0
- data/lib/components/jquery/src/manipulation/wrapMap.js +30 -0
- data/lib/components/jquery/src/offset.js +238 -0
- data/lib/components/jquery/src/queue.js +145 -0
- data/lib/components/jquery/src/queue/delay.js +24 -0
- data/lib/components/jquery/src/selector-native.js +241 -0
- data/lib/components/jquery/src/selector-sizzle.js +19 -0
- data/lib/components/jquery/src/selector.js +3 -0
- data/lib/components/jquery/src/serialize.js +136 -0
- data/lib/components/jquery/src/traversing.js +198 -0
- data/lib/components/jquery/src/traversing/findFilter.js +97 -0
- data/lib/components/jquery/src/traversing/var/dir.js +22 -0
- data/lib/components/jquery/src/traversing/var/rneedsContext.js +8 -0
- data/lib/components/jquery/src/traversing/var/siblings.js +17 -0
- data/lib/components/jquery/src/var/ObjectFunctionString.js +7 -0
- data/lib/components/jquery/src/var/arr.js +5 -0
- data/lib/components/jquery/src/var/class2type.js +6 -0
- data/lib/components/jquery/src/var/document.js +5 -0
- data/lib/components/jquery/src/var/documentElement.js +7 -0
- data/lib/components/jquery/src/var/flat.js +16 -0
- data/lib/components/jquery/src/var/fnToString.js +7 -0
- data/lib/components/jquery/src/var/getProto.js +5 -0
- data/lib/components/jquery/src/var/hasOwn.js +7 -0
- data/lib/components/jquery/src/var/indexOf.js +7 -0
- data/lib/components/jquery/src/var/isFunction.js +13 -0
- data/lib/components/jquery/src/var/isWindow.js +8 -0
- data/lib/components/jquery/src/var/pnum.js +5 -0
- data/lib/components/jquery/src/var/push.js +7 -0
- data/lib/components/jquery/src/var/rcheckableType.js +5 -0
- data/lib/components/jquery/src/var/rcssNum.js +9 -0
- data/lib/components/jquery/src/var/rnothtmlwhite.js +8 -0
- data/lib/components/jquery/src/var/slice.js +7 -0
- data/lib/components/jquery/src/var/support.js +6 -0
- data/lib/components/jquery/src/var/toString.js +7 -0
- data/lib/components/jquery/src/wrap.js +78 -0
- data/lib/utopia/wiki.rb +80 -0
- data/lib/utopia/wiki/version.rb +27 -0
- data/package.json +6 -0
- data/pages/_editor.xnode +21 -0
- data/pages/_heading.xnode +2 -0
- data/pages/_listing.xnode +23 -0
- data/pages/_navigation.xnode +33 -0
- data/pages/_page.xnode +32 -0
- data/pages/_thumbnail.xnode +8 -0
- data/pages/controller.rb +77 -0
- data/pages/create.xnode +15 -0
- data/pages/edit.xnode +10 -0
- data/pages/errors/exception.xnode +5 -0
- data/pages/errors/file-not-found.xnode +5 -0
- data/pages/links.yaml +2 -0
- data/pages/show.xnode +15 -0
- data/public/.nojekyll +0 -0
- data/public/_components/jquery-litebox/jquery.litebox.css +23 -0
- data/public/_components/jquery-litebox/jquery.litebox.gallery.css +48 -0
- data/public/_components/jquery-litebox/jquery.litebox.js +30 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.apache.css +12 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css +5 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css +8 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash-script.css +6 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash.css +4 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.clang.css +6 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.css.css +14 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.diff.css +16 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.html.css +5 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.ocaml.css +3 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.protobuf.css +2 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.python.css +6 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.ruby.css +2 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.brush.xml.css +18 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.core.css +58 -0
- data/public/_components/jquery-syntax/base/jquery.syntax.editor.css +6 -0
- data/public/_components/jquery-syntax/base/theme.js +1 -0
- data/public/_components/jquery-syntax/bright/jquery.syntax.core.css +27 -0
- data/public/_components/jquery-syntax/bright/theme.js +1 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.apache.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.applescript.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.assembly.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.bash-script.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.bash.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.basic.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.clang.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.csharp.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.css.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.diff.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.go.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.haskell.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.html.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.io.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.java.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.javascript.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.kai.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.lisp.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.lua.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.nginx.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.ocaml.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.ooc.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.pascal.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.perl5.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.php-script.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.php.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.plain.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.protobuf.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.python.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.ruby.js +5 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.scala.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.smalltalk.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.sql.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.super-collider.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.swift.js +3 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.xml.js +4 -0
- data/public/_components/jquery-syntax/jquery.syntax.brush.yaml.js +2 -0
- data/public/_components/jquery-syntax/jquery.syntax.cache.js +7 -0
- data/public/_components/jquery-syntax/jquery.syntax.core.js +34 -0
- data/public/_components/jquery-syntax/jquery.syntax.editor.js +11 -0
- data/public/_components/jquery-syntax/jquery.syntax.js +8 -0
- data/public/_components/jquery-syntax/jquery.syntax.min.js +13 -0
- data/public/_components/jquery-syntax/paper/jquery.syntax.core.css +31 -0
- data/public/_components/jquery-syntax/paper/theme.js +1 -0
- data/public/_components/jquery/jquery.js +10872 -0
- data/public/_components/jquery/jquery.min.js +2 -0
- data/public/_components/jquery/jquery.min.map +1 -0
- data/public/_components/jquery/jquery.slim.js +8777 -0
- data/public/_components/jquery/jquery.slim.min.js +2 -0
- data/public/_components/jquery/jquery.slim.min.map +1 -0
- data/public/_static/icon.png +0 -0
- data/public/_static/site.css +191 -0
- data/utopia-wiki.gemspec +39 -0
- data/wiki/Gemfile +10 -0
- data/wiki/config.ru +7 -0
- data/wiki/pages/_logos/Async.png +0 -0
- data/wiki/pages/_logos/Falcon.png +0 -0
- data/wiki/pages/_logos/Utopia.png +0 -0
- data/wiki/pages/index.en.md +62 -0
- data/wiki/pages/index.md +57 -0
- data/wiki/pages/links.yaml +2 -0
- data/wiki/pages/usage/merging/index.md +3 -0
- data/yarn.lock +22 -0
- metadata +675 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
define( [
|
2
|
+
"../var/rnothtmlwhite"
|
3
|
+
], function( rnothtmlwhite ) {
|
4
|
+
"use strict";
|
5
|
+
|
6
|
+
// Strip and collapse whitespace according to HTML spec
|
7
|
+
// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
|
8
|
+
function stripAndCollapse( value ) {
|
9
|
+
var tokens = value.match( rnothtmlwhite ) || [];
|
10
|
+
return tokens.join( " " );
|
11
|
+
}
|
12
|
+
|
13
|
+
return stripAndCollapse;
|
14
|
+
} );
|
@@ -0,0 +1,20 @@
|
|
1
|
+
define( [
|
2
|
+
"../var/document",
|
3
|
+
"../var/support"
|
4
|
+
], function( document, support ) {
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
// Support: Safari 8 only
|
9
|
+
// In Safari 8 documents created via document.implementation.createHTMLDocument
|
10
|
+
// collapse sibling forms: the second one becomes a child of the first one.
|
11
|
+
// Because of that, this security measure has to be disabled in Safari 8.
|
12
|
+
// https://bugs.webkit.org/show_bug.cgi?id=137337
|
13
|
+
support.createHTMLDocument = ( function() {
|
14
|
+
var body = document.implementation.createHTMLDocument( "" ).body;
|
15
|
+
body.innerHTML = "<form></form><form></form>";
|
16
|
+
return body.childNodes.length === 2;
|
17
|
+
} )();
|
18
|
+
|
19
|
+
return support;
|
20
|
+
} );
|
@@ -0,0 +1,20 @@
|
|
1
|
+
define( [
|
2
|
+
"../var/class2type",
|
3
|
+
"../var/toString"
|
4
|
+
], function( class2type, toString ) {
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
function toType( obj ) {
|
9
|
+
if ( obj == null ) {
|
10
|
+
return obj + "";
|
11
|
+
}
|
12
|
+
|
13
|
+
// Support: Android <=2.3 only (functionish RegExp)
|
14
|
+
return typeof obj === "object" || typeof obj === "function" ?
|
15
|
+
class2type[ toString.call( obj ) ] || "object" :
|
16
|
+
typeof obj;
|
17
|
+
}
|
18
|
+
|
19
|
+
return toType;
|
20
|
+
} );
|
@@ -0,0 +1,494 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./core/access",
|
4
|
+
"./core/camelCase",
|
5
|
+
"./core/nodeName",
|
6
|
+
"./var/rcssNum",
|
7
|
+
"./css/var/rnumnonpx",
|
8
|
+
"./css/var/cssExpand",
|
9
|
+
"./css/var/getStyles",
|
10
|
+
"./css/var/swap",
|
11
|
+
"./css/curCSS",
|
12
|
+
"./css/adjustCSS",
|
13
|
+
"./css/addGetHookIf",
|
14
|
+
"./css/support",
|
15
|
+
"./css/finalPropName",
|
16
|
+
|
17
|
+
"./core/init",
|
18
|
+
"./core/ready",
|
19
|
+
"./selector" // contains
|
20
|
+
], function( jQuery, access, camelCase, nodeName, rcssNum, rnumnonpx, cssExpand,
|
21
|
+
getStyles, swap, curCSS, adjustCSS, addGetHookIf, support, finalPropName ) {
|
22
|
+
|
23
|
+
"use strict";
|
24
|
+
|
25
|
+
var
|
26
|
+
|
27
|
+
// Swappable if display is none or starts with table
|
28
|
+
// except "table", "table-cell", or "table-caption"
|
29
|
+
// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
|
30
|
+
rdisplayswap = /^(none|table(?!-c[ea]).+)/,
|
31
|
+
rcustomProp = /^--/,
|
32
|
+
cssShow = { position: "absolute", visibility: "hidden", display: "block" },
|
33
|
+
cssNormalTransform = {
|
34
|
+
letterSpacing: "0",
|
35
|
+
fontWeight: "400"
|
36
|
+
};
|
37
|
+
|
38
|
+
function setPositiveNumber( _elem, value, subtract ) {
|
39
|
+
|
40
|
+
// Any relative (+/-) values have already been
|
41
|
+
// normalized at this point
|
42
|
+
var matches = rcssNum.exec( value );
|
43
|
+
return matches ?
|
44
|
+
|
45
|
+
// Guard against undefined "subtract", e.g., when used as in cssHooks
|
46
|
+
Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
|
47
|
+
value;
|
48
|
+
}
|
49
|
+
|
50
|
+
function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
|
51
|
+
var i = dimension === "width" ? 1 : 0,
|
52
|
+
extra = 0,
|
53
|
+
delta = 0;
|
54
|
+
|
55
|
+
// Adjustment may not be necessary
|
56
|
+
if ( box === ( isBorderBox ? "border" : "content" ) ) {
|
57
|
+
return 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
for ( ; i < 4; i += 2 ) {
|
61
|
+
|
62
|
+
// Both box models exclude margin
|
63
|
+
if ( box === "margin" ) {
|
64
|
+
delta += jQuery.css( elem, box + cssExpand[ i ], true, styles );
|
65
|
+
}
|
66
|
+
|
67
|
+
// If we get here with a content-box, we're seeking "padding" or "border" or "margin"
|
68
|
+
if ( !isBorderBox ) {
|
69
|
+
|
70
|
+
// Add padding
|
71
|
+
delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
|
72
|
+
|
73
|
+
// For "border" or "margin", add border
|
74
|
+
if ( box !== "padding" ) {
|
75
|
+
delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
|
76
|
+
|
77
|
+
// But still keep track of it otherwise
|
78
|
+
} else {
|
79
|
+
extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
|
80
|
+
}
|
81
|
+
|
82
|
+
// If we get here with a border-box (content + padding + border), we're seeking "content" or
|
83
|
+
// "padding" or "margin"
|
84
|
+
} else {
|
85
|
+
|
86
|
+
// For "content", subtract padding
|
87
|
+
if ( box === "content" ) {
|
88
|
+
delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
|
89
|
+
}
|
90
|
+
|
91
|
+
// For "content" or "padding", subtract border
|
92
|
+
if ( box !== "margin" ) {
|
93
|
+
delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
// Account for positive content-box scroll gutter when requested by providing computedVal
|
99
|
+
if ( !isBorderBox && computedVal >= 0 ) {
|
100
|
+
|
101
|
+
// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
|
102
|
+
// Assuming integer scroll gutter, subtract the rest and round down
|
103
|
+
delta += Math.max( 0, Math.ceil(
|
104
|
+
elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
|
105
|
+
computedVal -
|
106
|
+
delta -
|
107
|
+
extra -
|
108
|
+
0.5
|
109
|
+
|
110
|
+
// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
|
111
|
+
// Use an explicit zero to avoid NaN (gh-3964)
|
112
|
+
) ) || 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
return delta;
|
116
|
+
}
|
117
|
+
|
118
|
+
function getWidthOrHeight( elem, dimension, extra ) {
|
119
|
+
|
120
|
+
// Start with computed style
|
121
|
+
var styles = getStyles( elem ),
|
122
|
+
|
123
|
+
// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322).
|
124
|
+
// Fake content-box until we know it's needed to know the true value.
|
125
|
+
boxSizingNeeded = !support.boxSizingReliable() || extra,
|
126
|
+
isBorderBox = boxSizingNeeded &&
|
127
|
+
jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
|
128
|
+
valueIsBorderBox = isBorderBox,
|
129
|
+
|
130
|
+
val = curCSS( elem, dimension, styles ),
|
131
|
+
offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 );
|
132
|
+
|
133
|
+
// Support: Firefox <=54
|
134
|
+
// Return a confounding non-pixel value or feign ignorance, as appropriate.
|
135
|
+
if ( rnumnonpx.test( val ) ) {
|
136
|
+
if ( !extra ) {
|
137
|
+
return val;
|
138
|
+
}
|
139
|
+
val = "auto";
|
140
|
+
}
|
141
|
+
|
142
|
+
|
143
|
+
// Support: IE 9 - 11 only
|
144
|
+
// Use offsetWidth/offsetHeight for when box sizing is unreliable.
|
145
|
+
// In those cases, the computed value can be trusted to be border-box.
|
146
|
+
if ( ( !support.boxSizingReliable() && isBorderBox ||
|
147
|
+
|
148
|
+
// Support: IE 10 - 11+, Edge 15 - 18+
|
149
|
+
// IE/Edge misreport `getComputedStyle` of table rows with width/height
|
150
|
+
// set in CSS while `offset*` properties report correct values.
|
151
|
+
// Interestingly, in some cases IE 9 doesn't suffer from this issue.
|
152
|
+
!support.reliableTrDimensions() && nodeName( elem, "tr" ) ||
|
153
|
+
|
154
|
+
// Fall back to offsetWidth/offsetHeight when value is "auto"
|
155
|
+
// This happens for inline elements with no explicit setting (gh-3571)
|
156
|
+
val === "auto" ||
|
157
|
+
|
158
|
+
// Support: Android <=4.1 - 4.3 only
|
159
|
+
// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
|
160
|
+
!parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) &&
|
161
|
+
|
162
|
+
// Make sure the element is visible & connected
|
163
|
+
elem.getClientRects().length ) {
|
164
|
+
|
165
|
+
isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
|
166
|
+
|
167
|
+
// Where available, offsetWidth/offsetHeight approximate border box dimensions.
|
168
|
+
// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the
|
169
|
+
// retrieved value as a content box dimension.
|
170
|
+
valueIsBorderBox = offsetProp in elem;
|
171
|
+
if ( valueIsBorderBox ) {
|
172
|
+
val = elem[ offsetProp ];
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
// Normalize "" and auto
|
177
|
+
val = parseFloat( val ) || 0;
|
178
|
+
|
179
|
+
// Adjust for the element's box model
|
180
|
+
return ( val +
|
181
|
+
boxModelAdjustment(
|
182
|
+
elem,
|
183
|
+
dimension,
|
184
|
+
extra || ( isBorderBox ? "border" : "content" ),
|
185
|
+
valueIsBorderBox,
|
186
|
+
styles,
|
187
|
+
|
188
|
+
// Provide the current computed size to request scroll gutter calculation (gh-3589)
|
189
|
+
val
|
190
|
+
)
|
191
|
+
) + "px";
|
192
|
+
}
|
193
|
+
|
194
|
+
jQuery.extend( {
|
195
|
+
|
196
|
+
// Add in style property hooks for overriding the default
|
197
|
+
// behavior of getting and setting a style property
|
198
|
+
cssHooks: {
|
199
|
+
opacity: {
|
200
|
+
get: function( elem, computed ) {
|
201
|
+
if ( computed ) {
|
202
|
+
|
203
|
+
// We should always get a number back from opacity
|
204
|
+
var ret = curCSS( elem, "opacity" );
|
205
|
+
return ret === "" ? "1" : ret;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
},
|
210
|
+
|
211
|
+
// Don't automatically add "px" to these possibly-unitless properties
|
212
|
+
cssNumber: {
|
213
|
+
"animationIterationCount": true,
|
214
|
+
"columnCount": true,
|
215
|
+
"fillOpacity": true,
|
216
|
+
"flexGrow": true,
|
217
|
+
"flexShrink": true,
|
218
|
+
"fontWeight": true,
|
219
|
+
"gridArea": true,
|
220
|
+
"gridColumn": true,
|
221
|
+
"gridColumnEnd": true,
|
222
|
+
"gridColumnStart": true,
|
223
|
+
"gridRow": true,
|
224
|
+
"gridRowEnd": true,
|
225
|
+
"gridRowStart": true,
|
226
|
+
"lineHeight": true,
|
227
|
+
"opacity": true,
|
228
|
+
"order": true,
|
229
|
+
"orphans": true,
|
230
|
+
"widows": true,
|
231
|
+
"zIndex": true,
|
232
|
+
"zoom": true
|
233
|
+
},
|
234
|
+
|
235
|
+
// Add in properties whose names you wish to fix before
|
236
|
+
// setting or getting the value
|
237
|
+
cssProps: {},
|
238
|
+
|
239
|
+
// Get and set the style property on a DOM Node
|
240
|
+
style: function( elem, name, value, extra ) {
|
241
|
+
|
242
|
+
// Don't set styles on text and comment nodes
|
243
|
+
if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
|
244
|
+
return;
|
245
|
+
}
|
246
|
+
|
247
|
+
// Make sure that we're working with the right name
|
248
|
+
var ret, type, hooks,
|
249
|
+
origName = camelCase( name ),
|
250
|
+
isCustomProp = rcustomProp.test( name ),
|
251
|
+
style = elem.style;
|
252
|
+
|
253
|
+
// Make sure that we're working with the right name. We don't
|
254
|
+
// want to query the value if it is a CSS custom property
|
255
|
+
// since they are user-defined.
|
256
|
+
if ( !isCustomProp ) {
|
257
|
+
name = finalPropName( origName );
|
258
|
+
}
|
259
|
+
|
260
|
+
// Gets hook for the prefixed version, then unprefixed version
|
261
|
+
hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
|
262
|
+
|
263
|
+
// Check if we're setting a value
|
264
|
+
if ( value !== undefined ) {
|
265
|
+
type = typeof value;
|
266
|
+
|
267
|
+
// Convert "+=" or "-=" to relative numbers (#7345)
|
268
|
+
if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
|
269
|
+
value = adjustCSS( elem, name, ret );
|
270
|
+
|
271
|
+
// Fixes bug #9237
|
272
|
+
type = "number";
|
273
|
+
}
|
274
|
+
|
275
|
+
// Make sure that null and NaN values aren't set (#7116)
|
276
|
+
if ( value == null || value !== value ) {
|
277
|
+
return;
|
278
|
+
}
|
279
|
+
|
280
|
+
// If a number was passed in, add the unit (except for certain CSS properties)
|
281
|
+
// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append
|
282
|
+
// "px" to a few hardcoded values.
|
283
|
+
if ( type === "number" && !isCustomProp ) {
|
284
|
+
value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
|
285
|
+
}
|
286
|
+
|
287
|
+
// background-* props affect original clone's values
|
288
|
+
if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
|
289
|
+
style[ name ] = "inherit";
|
290
|
+
}
|
291
|
+
|
292
|
+
// If a hook was provided, use that value, otherwise just set the specified value
|
293
|
+
if ( !hooks || !( "set" in hooks ) ||
|
294
|
+
( value = hooks.set( elem, value, extra ) ) !== undefined ) {
|
295
|
+
|
296
|
+
if ( isCustomProp ) {
|
297
|
+
style.setProperty( name, value );
|
298
|
+
} else {
|
299
|
+
style[ name ] = value;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
|
303
|
+
} else {
|
304
|
+
|
305
|
+
// If a hook was provided get the non-computed value from there
|
306
|
+
if ( hooks && "get" in hooks &&
|
307
|
+
( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
|
308
|
+
|
309
|
+
return ret;
|
310
|
+
}
|
311
|
+
|
312
|
+
// Otherwise just get the value from the style object
|
313
|
+
return style[ name ];
|
314
|
+
}
|
315
|
+
},
|
316
|
+
|
317
|
+
css: function( elem, name, extra, styles ) {
|
318
|
+
var val, num, hooks,
|
319
|
+
origName = camelCase( name ),
|
320
|
+
isCustomProp = rcustomProp.test( name );
|
321
|
+
|
322
|
+
// Make sure that we're working with the right name. We don't
|
323
|
+
// want to modify the value if it is a CSS custom property
|
324
|
+
// since they are user-defined.
|
325
|
+
if ( !isCustomProp ) {
|
326
|
+
name = finalPropName( origName );
|
327
|
+
}
|
328
|
+
|
329
|
+
// Try prefixed name followed by the unprefixed name
|
330
|
+
hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
|
331
|
+
|
332
|
+
// If a hook was provided get the computed value from there
|
333
|
+
if ( hooks && "get" in hooks ) {
|
334
|
+
val = hooks.get( elem, true, extra );
|
335
|
+
}
|
336
|
+
|
337
|
+
// Otherwise, if a way to get the computed value exists, use that
|
338
|
+
if ( val === undefined ) {
|
339
|
+
val = curCSS( elem, name, styles );
|
340
|
+
}
|
341
|
+
|
342
|
+
// Convert "normal" to computed value
|
343
|
+
if ( val === "normal" && name in cssNormalTransform ) {
|
344
|
+
val = cssNormalTransform[ name ];
|
345
|
+
}
|
346
|
+
|
347
|
+
// Make numeric if forced or a qualifier was provided and val looks numeric
|
348
|
+
if ( extra === "" || extra ) {
|
349
|
+
num = parseFloat( val );
|
350
|
+
return extra === true || isFinite( num ) ? num || 0 : val;
|
351
|
+
}
|
352
|
+
|
353
|
+
return val;
|
354
|
+
}
|
355
|
+
} );
|
356
|
+
|
357
|
+
jQuery.each( [ "height", "width" ], function( _i, dimension ) {
|
358
|
+
jQuery.cssHooks[ dimension ] = {
|
359
|
+
get: function( elem, computed, extra ) {
|
360
|
+
if ( computed ) {
|
361
|
+
|
362
|
+
// Certain elements can have dimension info if we invisibly show them
|
363
|
+
// but it must have a current display style that would benefit
|
364
|
+
return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
|
365
|
+
|
366
|
+
// Support: Safari 8+
|
367
|
+
// Table columns in Safari have non-zero offsetWidth & zero
|
368
|
+
// getBoundingClientRect().width unless display is changed.
|
369
|
+
// Support: IE <=11 only
|
370
|
+
// Running getBoundingClientRect on a disconnected node
|
371
|
+
// in IE throws an error.
|
372
|
+
( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
|
373
|
+
swap( elem, cssShow, function() {
|
374
|
+
return getWidthOrHeight( elem, dimension, extra );
|
375
|
+
} ) :
|
376
|
+
getWidthOrHeight( elem, dimension, extra );
|
377
|
+
}
|
378
|
+
},
|
379
|
+
|
380
|
+
set: function( elem, value, extra ) {
|
381
|
+
var matches,
|
382
|
+
styles = getStyles( elem ),
|
383
|
+
|
384
|
+
// Only read styles.position if the test has a chance to fail
|
385
|
+
// to avoid forcing a reflow.
|
386
|
+
scrollboxSizeBuggy = !support.scrollboxSize() &&
|
387
|
+
styles.position === "absolute",
|
388
|
+
|
389
|
+
// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)
|
390
|
+
boxSizingNeeded = scrollboxSizeBuggy || extra,
|
391
|
+
isBorderBox = boxSizingNeeded &&
|
392
|
+
jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
|
393
|
+
subtract = extra ?
|
394
|
+
boxModelAdjustment(
|
395
|
+
elem,
|
396
|
+
dimension,
|
397
|
+
extra,
|
398
|
+
isBorderBox,
|
399
|
+
styles
|
400
|
+
) :
|
401
|
+
0;
|
402
|
+
|
403
|
+
// Account for unreliable border-box dimensions by comparing offset* to computed and
|
404
|
+
// faking a content-box to get border and padding (gh-3699)
|
405
|
+
if ( isBorderBox && scrollboxSizeBuggy ) {
|
406
|
+
subtract -= Math.ceil(
|
407
|
+
elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
|
408
|
+
parseFloat( styles[ dimension ] ) -
|
409
|
+
boxModelAdjustment( elem, dimension, "border", false, styles ) -
|
410
|
+
0.5
|
411
|
+
);
|
412
|
+
}
|
413
|
+
|
414
|
+
// Convert to pixels if value adjustment is needed
|
415
|
+
if ( subtract && ( matches = rcssNum.exec( value ) ) &&
|
416
|
+
( matches[ 3 ] || "px" ) !== "px" ) {
|
417
|
+
|
418
|
+
elem.style[ dimension ] = value;
|
419
|
+
value = jQuery.css( elem, dimension );
|
420
|
+
}
|
421
|
+
|
422
|
+
return setPositiveNumber( elem, value, subtract );
|
423
|
+
}
|
424
|
+
};
|
425
|
+
} );
|
426
|
+
|
427
|
+
jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
|
428
|
+
function( elem, computed ) {
|
429
|
+
if ( computed ) {
|
430
|
+
return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
|
431
|
+
elem.getBoundingClientRect().left -
|
432
|
+
swap( elem, { marginLeft: 0 }, function() {
|
433
|
+
return elem.getBoundingClientRect().left;
|
434
|
+
} )
|
435
|
+
) + "px";
|
436
|
+
}
|
437
|
+
}
|
438
|
+
);
|
439
|
+
|
440
|
+
// These hooks are used by animate to expand properties
|
441
|
+
jQuery.each( {
|
442
|
+
margin: "",
|
443
|
+
padding: "",
|
444
|
+
border: "Width"
|
445
|
+
}, function( prefix, suffix ) {
|
446
|
+
jQuery.cssHooks[ prefix + suffix ] = {
|
447
|
+
expand: function( value ) {
|
448
|
+
var i = 0,
|
449
|
+
expanded = {},
|
450
|
+
|
451
|
+
// Assumes a single number if not a string
|
452
|
+
parts = typeof value === "string" ? value.split( " " ) : [ value ];
|
453
|
+
|
454
|
+
for ( ; i < 4; i++ ) {
|
455
|
+
expanded[ prefix + cssExpand[ i ] + suffix ] =
|
456
|
+
parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
|
457
|
+
}
|
458
|
+
|
459
|
+
return expanded;
|
460
|
+
}
|
461
|
+
};
|
462
|
+
|
463
|
+
if ( prefix !== "margin" ) {
|
464
|
+
jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
|
465
|
+
}
|
466
|
+
} );
|
467
|
+
|
468
|
+
jQuery.fn.extend( {
|
469
|
+
css: function( name, value ) {
|
470
|
+
return access( this, function( elem, name, value ) {
|
471
|
+
var styles, len,
|
472
|
+
map = {},
|
473
|
+
i = 0;
|
474
|
+
|
475
|
+
if ( Array.isArray( name ) ) {
|
476
|
+
styles = getStyles( elem );
|
477
|
+
len = name.length;
|
478
|
+
|
479
|
+
for ( ; i < len; i++ ) {
|
480
|
+
map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
|
481
|
+
}
|
482
|
+
|
483
|
+
return map;
|
484
|
+
}
|
485
|
+
|
486
|
+
return value !== undefined ?
|
487
|
+
jQuery.style( elem, name, value ) :
|
488
|
+
jQuery.css( elem, name );
|
489
|
+
}, name, value, arguments.length > 1 );
|
490
|
+
}
|
491
|
+
} );
|
492
|
+
|
493
|
+
return jQuery;
|
494
|
+
} );
|