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,32 @@
|
|
1
|
+
define( [
|
2
|
+
"../ajax"
|
3
|
+
], function( jQuery ) {
|
4
|
+
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
jQuery._evalUrl = function( url, options, doc ) {
|
8
|
+
return jQuery.ajax( {
|
9
|
+
url: url,
|
10
|
+
|
11
|
+
// Make this explicit, since user can override this through ajaxSetup (#11264)
|
12
|
+
type: "GET",
|
13
|
+
dataType: "script",
|
14
|
+
cache: true,
|
15
|
+
async: false,
|
16
|
+
global: false,
|
17
|
+
|
18
|
+
// Only evaluate the response if it is successful (gh-4126)
|
19
|
+
// dataFilter is not invoked for failure responses, so using it instead
|
20
|
+
// of the default converter is kludgy but it works.
|
21
|
+
converters: {
|
22
|
+
"text script": function() {}
|
23
|
+
},
|
24
|
+
dataFilter: function( response ) {
|
25
|
+
jQuery.globalEval( response, options, doc );
|
26
|
+
}
|
27
|
+
} );
|
28
|
+
};
|
29
|
+
|
30
|
+
return jQuery._evalUrl;
|
31
|
+
|
32
|
+
} );
|
@@ -0,0 +1,106 @@
|
|
1
|
+
define( [
|
2
|
+
"../core",
|
3
|
+
"../core/toType",
|
4
|
+
"../core/isAttached",
|
5
|
+
"./var/rtagName",
|
6
|
+
"./var/rscriptType",
|
7
|
+
"./wrapMap",
|
8
|
+
"./getAll",
|
9
|
+
"./setGlobalEval"
|
10
|
+
], function( jQuery, toType, isAttached, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
|
11
|
+
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
var rhtml = /<|&#?\w+;/;
|
15
|
+
|
16
|
+
function buildFragment( elems, context, scripts, selection, ignored ) {
|
17
|
+
var elem, tmp, tag, wrap, attached, j,
|
18
|
+
fragment = context.createDocumentFragment(),
|
19
|
+
nodes = [],
|
20
|
+
i = 0,
|
21
|
+
l = elems.length;
|
22
|
+
|
23
|
+
for ( ; i < l; i++ ) {
|
24
|
+
elem = elems[ i ];
|
25
|
+
|
26
|
+
if ( elem || elem === 0 ) {
|
27
|
+
|
28
|
+
// Add nodes directly
|
29
|
+
if ( toType( elem ) === "object" ) {
|
30
|
+
|
31
|
+
// Support: Android <=4.0 only, PhantomJS 1 only
|
32
|
+
// push.apply(_, arraylike) throws on ancient WebKit
|
33
|
+
jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
|
34
|
+
|
35
|
+
// Convert non-html into a text node
|
36
|
+
} else if ( !rhtml.test( elem ) ) {
|
37
|
+
nodes.push( context.createTextNode( elem ) );
|
38
|
+
|
39
|
+
// Convert html into DOM nodes
|
40
|
+
} else {
|
41
|
+
tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
|
42
|
+
|
43
|
+
// Deserialize a standard representation
|
44
|
+
tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
|
45
|
+
wrap = wrapMap[ tag ] || wrapMap._default;
|
46
|
+
tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
|
47
|
+
|
48
|
+
// Descend through wrappers to the right content
|
49
|
+
j = wrap[ 0 ];
|
50
|
+
while ( j-- ) {
|
51
|
+
tmp = tmp.lastChild;
|
52
|
+
}
|
53
|
+
|
54
|
+
// Support: Android <=4.0 only, PhantomJS 1 only
|
55
|
+
// push.apply(_, arraylike) throws on ancient WebKit
|
56
|
+
jQuery.merge( nodes, tmp.childNodes );
|
57
|
+
|
58
|
+
// Remember the top-level container
|
59
|
+
tmp = fragment.firstChild;
|
60
|
+
|
61
|
+
// Ensure the created nodes are orphaned (#12392)
|
62
|
+
tmp.textContent = "";
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
// Remove wrapper from fragment
|
68
|
+
fragment.textContent = "";
|
69
|
+
|
70
|
+
i = 0;
|
71
|
+
while ( ( elem = nodes[ i++ ] ) ) {
|
72
|
+
|
73
|
+
// Skip elements already in the context collection (trac-4087)
|
74
|
+
if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
|
75
|
+
if ( ignored ) {
|
76
|
+
ignored.push( elem );
|
77
|
+
}
|
78
|
+
continue;
|
79
|
+
}
|
80
|
+
|
81
|
+
attached = isAttached( elem );
|
82
|
+
|
83
|
+
// Append to fragment
|
84
|
+
tmp = getAll( fragment.appendChild( elem ), "script" );
|
85
|
+
|
86
|
+
// Preserve script evaluation history
|
87
|
+
if ( attached ) {
|
88
|
+
setGlobalEval( tmp );
|
89
|
+
}
|
90
|
+
|
91
|
+
// Capture executables
|
92
|
+
if ( scripts ) {
|
93
|
+
j = 0;
|
94
|
+
while ( ( elem = tmp[ j++ ] ) ) {
|
95
|
+
if ( rscriptType.test( elem.type || "" ) ) {
|
96
|
+
scripts.push( elem );
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
return fragment;
|
103
|
+
}
|
104
|
+
|
105
|
+
return buildFragment;
|
106
|
+
} );
|
@@ -0,0 +1,32 @@
|
|
1
|
+
define( [
|
2
|
+
"../core",
|
3
|
+
"../core/nodeName"
|
4
|
+
], function( jQuery, nodeName ) {
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
function getAll( context, tag ) {
|
9
|
+
|
10
|
+
// Support: IE <=9 - 11 only
|
11
|
+
// Use typeof to avoid zero-argument method invocation on host objects (#15151)
|
12
|
+
var ret;
|
13
|
+
|
14
|
+
if ( typeof context.getElementsByTagName !== "undefined" ) {
|
15
|
+
ret = context.getElementsByTagName( tag || "*" );
|
16
|
+
|
17
|
+
} else if ( typeof context.querySelectorAll !== "undefined" ) {
|
18
|
+
ret = context.querySelectorAll( tag || "*" );
|
19
|
+
|
20
|
+
} else {
|
21
|
+
ret = [];
|
22
|
+
}
|
23
|
+
|
24
|
+
if ( tag === undefined || tag && nodeName( context, tag ) ) {
|
25
|
+
return jQuery.merge( [ context ], ret );
|
26
|
+
}
|
27
|
+
|
28
|
+
return ret;
|
29
|
+
}
|
30
|
+
|
31
|
+
return getAll;
|
32
|
+
} );
|
@@ -0,0 +1,22 @@
|
|
1
|
+
define( [
|
2
|
+
"../data/var/dataPriv"
|
3
|
+
], function( dataPriv ) {
|
4
|
+
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
// Mark scripts as having already been evaluated
|
8
|
+
function setGlobalEval( elems, refElements ) {
|
9
|
+
var i = 0,
|
10
|
+
l = elems.length;
|
11
|
+
|
12
|
+
for ( ; i < l; i++ ) {
|
13
|
+
dataPriv.set(
|
14
|
+
elems[ i ],
|
15
|
+
"globalEval",
|
16
|
+
!refElements || dataPriv.get( refElements[ i ], "globalEval" )
|
17
|
+
);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
return setGlobalEval;
|
22
|
+
} );
|
@@ -0,0 +1,41 @@
|
|
1
|
+
define( [
|
2
|
+
"../var/document",
|
3
|
+
"../var/support"
|
4
|
+
], function( document, support ) {
|
5
|
+
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
( function() {
|
9
|
+
var fragment = document.createDocumentFragment(),
|
10
|
+
div = fragment.appendChild( document.createElement( "div" ) ),
|
11
|
+
input = document.createElement( "input" );
|
12
|
+
|
13
|
+
// Support: Android 4.0 - 4.3 only
|
14
|
+
// Check state lost if the name is set (#11217)
|
15
|
+
// Support: Windows Web Apps (WWA)
|
16
|
+
// `name` and `type` must use .setAttribute for WWA (#14901)
|
17
|
+
input.setAttribute( "type", "radio" );
|
18
|
+
input.setAttribute( "checked", "checked" );
|
19
|
+
input.setAttribute( "name", "t" );
|
20
|
+
|
21
|
+
div.appendChild( input );
|
22
|
+
|
23
|
+
// Support: Android <=4.1 only
|
24
|
+
// Older WebKit doesn't clone checked state correctly in fragments
|
25
|
+
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
26
|
+
|
27
|
+
// Support: IE <=11 only
|
28
|
+
// Make sure textarea (and checkbox) defaultValue is properly cloned
|
29
|
+
div.innerHTML = "<textarea>x</textarea>";
|
30
|
+
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
|
31
|
+
|
32
|
+
// Support: IE <=9 only
|
33
|
+
// IE <=9 replaces <option> tags with their contents when inserted outside of
|
34
|
+
// the select element.
|
35
|
+
div.innerHTML = "<option></option>";
|
36
|
+
support.option = !!div.lastChild;
|
37
|
+
} )();
|
38
|
+
|
39
|
+
return support;
|
40
|
+
|
41
|
+
} );
|
@@ -0,0 +1,8 @@
|
|
1
|
+
define( function() {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
// rtagName captures the name from the first start tag in a string of HTML
|
5
|
+
// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
|
6
|
+
// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
|
7
|
+
return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
|
8
|
+
} );
|
@@ -0,0 +1,30 @@
|
|
1
|
+
define( [
|
2
|
+
"./support"
|
3
|
+
], function( support ) {
|
4
|
+
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
// We have to close these tags to support XHTML (#13200)
|
8
|
+
var wrapMap = {
|
9
|
+
|
10
|
+
// XHTML parsers do not magically insert elements in the
|
11
|
+
// same way that tag soup parsers do. So we cannot shorten
|
12
|
+
// this by omitting <tbody> or other required elements.
|
13
|
+
thead: [ 1, "<table>", "</table>" ],
|
14
|
+
col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
|
15
|
+
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
|
16
|
+
td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
|
17
|
+
|
18
|
+
_default: [ 0, "", "" ]
|
19
|
+
};
|
20
|
+
|
21
|
+
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
|
22
|
+
wrapMap.th = wrapMap.td;
|
23
|
+
|
24
|
+
// Support: IE <=9 only
|
25
|
+
if ( !support.option ) {
|
26
|
+
wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
|
27
|
+
}
|
28
|
+
|
29
|
+
return wrapMap;
|
30
|
+
} );
|
@@ -0,0 +1,238 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./core/access",
|
4
|
+
"./var/documentElement",
|
5
|
+
"./var/isFunction",
|
6
|
+
"./css/var/rnumnonpx",
|
7
|
+
"./css/curCSS",
|
8
|
+
"./css/addGetHookIf",
|
9
|
+
"./css/support",
|
10
|
+
"./var/isWindow",
|
11
|
+
"./core/init",
|
12
|
+
"./css",
|
13
|
+
"./selector" // contains
|
14
|
+
], function( jQuery, access, documentElement, isFunction, rnumnonpx,
|
15
|
+
curCSS, addGetHookIf, support, isWindow ) {
|
16
|
+
|
17
|
+
"use strict";
|
18
|
+
|
19
|
+
jQuery.offset = {
|
20
|
+
setOffset: function( elem, options, i ) {
|
21
|
+
var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
|
22
|
+
position = jQuery.css( elem, "position" ),
|
23
|
+
curElem = jQuery( elem ),
|
24
|
+
props = {};
|
25
|
+
|
26
|
+
// Set position first, in-case top/left are set even on static elem
|
27
|
+
if ( position === "static" ) {
|
28
|
+
elem.style.position = "relative";
|
29
|
+
}
|
30
|
+
|
31
|
+
curOffset = curElem.offset();
|
32
|
+
curCSSTop = jQuery.css( elem, "top" );
|
33
|
+
curCSSLeft = jQuery.css( elem, "left" );
|
34
|
+
calculatePosition = ( position === "absolute" || position === "fixed" ) &&
|
35
|
+
( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
|
36
|
+
|
37
|
+
// Need to be able to calculate position if either
|
38
|
+
// top or left is auto and position is either absolute or fixed
|
39
|
+
if ( calculatePosition ) {
|
40
|
+
curPosition = curElem.position();
|
41
|
+
curTop = curPosition.top;
|
42
|
+
curLeft = curPosition.left;
|
43
|
+
|
44
|
+
} else {
|
45
|
+
curTop = parseFloat( curCSSTop ) || 0;
|
46
|
+
curLeft = parseFloat( curCSSLeft ) || 0;
|
47
|
+
}
|
48
|
+
|
49
|
+
if ( isFunction( options ) ) {
|
50
|
+
|
51
|
+
// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
|
52
|
+
options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
|
53
|
+
}
|
54
|
+
|
55
|
+
if ( options.top != null ) {
|
56
|
+
props.top = ( options.top - curOffset.top ) + curTop;
|
57
|
+
}
|
58
|
+
if ( options.left != null ) {
|
59
|
+
props.left = ( options.left - curOffset.left ) + curLeft;
|
60
|
+
}
|
61
|
+
|
62
|
+
if ( "using" in options ) {
|
63
|
+
options.using.call( elem, props );
|
64
|
+
|
65
|
+
} else {
|
66
|
+
if ( typeof props.top === "number" ) {
|
67
|
+
props.top += "px";
|
68
|
+
}
|
69
|
+
if ( typeof props.left === "number" ) {
|
70
|
+
props.left += "px";
|
71
|
+
}
|
72
|
+
curElem.css( props );
|
73
|
+
}
|
74
|
+
}
|
75
|
+
};
|
76
|
+
|
77
|
+
jQuery.fn.extend( {
|
78
|
+
|
79
|
+
// offset() relates an element's border box to the document origin
|
80
|
+
offset: function( options ) {
|
81
|
+
|
82
|
+
// Preserve chaining for setter
|
83
|
+
if ( arguments.length ) {
|
84
|
+
return options === undefined ?
|
85
|
+
this :
|
86
|
+
this.each( function( i ) {
|
87
|
+
jQuery.offset.setOffset( this, options, i );
|
88
|
+
} );
|
89
|
+
}
|
90
|
+
|
91
|
+
var rect, win,
|
92
|
+
elem = this[ 0 ];
|
93
|
+
|
94
|
+
if ( !elem ) {
|
95
|
+
return;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Return zeros for disconnected and hidden (display: none) elements (gh-2310)
|
99
|
+
// Support: IE <=11 only
|
100
|
+
// Running getBoundingClientRect on a
|
101
|
+
// disconnected node in IE throws an error
|
102
|
+
if ( !elem.getClientRects().length ) {
|
103
|
+
return { top: 0, left: 0 };
|
104
|
+
}
|
105
|
+
|
106
|
+
// Get document-relative position by adding viewport scroll to viewport-relative gBCR
|
107
|
+
rect = elem.getBoundingClientRect();
|
108
|
+
win = elem.ownerDocument.defaultView;
|
109
|
+
return {
|
110
|
+
top: rect.top + win.pageYOffset,
|
111
|
+
left: rect.left + win.pageXOffset
|
112
|
+
};
|
113
|
+
},
|
114
|
+
|
115
|
+
// position() relates an element's margin box to its offset parent's padding box
|
116
|
+
// This corresponds to the behavior of CSS absolute positioning
|
117
|
+
position: function() {
|
118
|
+
if ( !this[ 0 ] ) {
|
119
|
+
return;
|
120
|
+
}
|
121
|
+
|
122
|
+
var offsetParent, offset, doc,
|
123
|
+
elem = this[ 0 ],
|
124
|
+
parentOffset = { top: 0, left: 0 };
|
125
|
+
|
126
|
+
// position:fixed elements are offset from the viewport, which itself always has zero offset
|
127
|
+
if ( jQuery.css( elem, "position" ) === "fixed" ) {
|
128
|
+
|
129
|
+
// Assume position:fixed implies availability of getBoundingClientRect
|
130
|
+
offset = elem.getBoundingClientRect();
|
131
|
+
|
132
|
+
} else {
|
133
|
+
offset = this.offset();
|
134
|
+
|
135
|
+
// Account for the *real* offset parent, which can be the document or its root element
|
136
|
+
// when a statically positioned element is identified
|
137
|
+
doc = elem.ownerDocument;
|
138
|
+
offsetParent = elem.offsetParent || doc.documentElement;
|
139
|
+
while ( offsetParent &&
|
140
|
+
( offsetParent === doc.body || offsetParent === doc.documentElement ) &&
|
141
|
+
jQuery.css( offsetParent, "position" ) === "static" ) {
|
142
|
+
|
143
|
+
offsetParent = offsetParent.parentNode;
|
144
|
+
}
|
145
|
+
if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {
|
146
|
+
|
147
|
+
// Incorporate borders into its offset, since they are outside its content origin
|
148
|
+
parentOffset = jQuery( offsetParent ).offset();
|
149
|
+
parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
|
150
|
+
parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
// Subtract parent offsets and element margins
|
155
|
+
return {
|
156
|
+
top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
|
157
|
+
left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
|
158
|
+
};
|
159
|
+
},
|
160
|
+
|
161
|
+
// This method will return documentElement in the following cases:
|
162
|
+
// 1) For the element inside the iframe without offsetParent, this method will return
|
163
|
+
// documentElement of the parent window
|
164
|
+
// 2) For the hidden or detached element
|
165
|
+
// 3) For body or html element, i.e. in case of the html node - it will return itself
|
166
|
+
//
|
167
|
+
// but those exceptions were never presented as a real life use-cases
|
168
|
+
// and might be considered as more preferable results.
|
169
|
+
//
|
170
|
+
// This logic, however, is not guaranteed and can change at any point in the future
|
171
|
+
offsetParent: function() {
|
172
|
+
return this.map( function() {
|
173
|
+
var offsetParent = this.offsetParent;
|
174
|
+
|
175
|
+
while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
|
176
|
+
offsetParent = offsetParent.offsetParent;
|
177
|
+
}
|
178
|
+
|
179
|
+
return offsetParent || documentElement;
|
180
|
+
} );
|
181
|
+
}
|
182
|
+
} );
|
183
|
+
|
184
|
+
// Create scrollLeft and scrollTop methods
|
185
|
+
jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
|
186
|
+
var top = "pageYOffset" === prop;
|
187
|
+
|
188
|
+
jQuery.fn[ method ] = function( val ) {
|
189
|
+
return access( this, function( elem, method, val ) {
|
190
|
+
|
191
|
+
// Coalesce documents and windows
|
192
|
+
var win;
|
193
|
+
if ( isWindow( elem ) ) {
|
194
|
+
win = elem;
|
195
|
+
} else if ( elem.nodeType === 9 ) {
|
196
|
+
win = elem.defaultView;
|
197
|
+
}
|
198
|
+
|
199
|
+
if ( val === undefined ) {
|
200
|
+
return win ? win[ prop ] : elem[ method ];
|
201
|
+
}
|
202
|
+
|
203
|
+
if ( win ) {
|
204
|
+
win.scrollTo(
|
205
|
+
!top ? val : win.pageXOffset,
|
206
|
+
top ? val : win.pageYOffset
|
207
|
+
);
|
208
|
+
|
209
|
+
} else {
|
210
|
+
elem[ method ] = val;
|
211
|
+
}
|
212
|
+
}, method, val, arguments.length );
|
213
|
+
};
|
214
|
+
} );
|
215
|
+
|
216
|
+
// Support: Safari <=7 - 9.1, Chrome <=37 - 49
|
217
|
+
// Add the top/left cssHooks using jQuery.fn.position
|
218
|
+
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
|
219
|
+
// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
|
220
|
+
// getComputedStyle returns percent when specified for top/left/bottom/right;
|
221
|
+
// rather than make the css module depend on the offset module, just check for it here
|
222
|
+
jQuery.each( [ "top", "left" ], function( _i, prop ) {
|
223
|
+
jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
|
224
|
+
function( elem, computed ) {
|
225
|
+
if ( computed ) {
|
226
|
+
computed = curCSS( elem, prop );
|
227
|
+
|
228
|
+
// If curCSS returns percentage, fallback to offset
|
229
|
+
return rnumnonpx.test( computed ) ?
|
230
|
+
jQuery( elem ).position()[ prop ] + "px" :
|
231
|
+
computed;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
);
|
235
|
+
} );
|
236
|
+
|
237
|
+
return jQuery;
|
238
|
+
} );
|