Browse Source

Fix incorrect path to minified styling as pointed out on https://dom.hastin.gs/blog/coding/wevdav-js-update/475#comment-33810

Dom Hastings 7 năm trước cách đây
mục cha
commit
4c973c59d3

+ 1 - 1
examples/apache-directory-list/header.html

@@ -1 +1 @@
-<script type="text/javascript">!function(){var t=document.getElementsByTagName("head")[0],e=function(e,s){var a=document.createElement("script");a.src=e,a.type="text/javascript",s&&(a.onload=s),t.appendChild(a)},s=function(e){var s=document.createElement("link");s.href=e,s.rel="stylesheet",t.appendChild(s)};e("https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js",function(){["https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js","https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autorun=false","https://cdn.rawgit.com/notifyjs/notifyjs/master/dist/notify.js","https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css","https://cdn.rawgit.com/dom111/webdav-js/master/assets/css/style.min.css","https://cdn.rawgit.com/dom111/webdav-js/master/src/webdav-min.js"].forEach(function(t){t.match(/css$/)?s(t):e(t)})})}()</script>
+<script type="text/javascript">!function(){var t=document.getElementsByTagName("head")[0],e=function(e,s){var a=document.createElement("script");a.src=e,a.type="text/javascript",s&&(a.onload=s),t.appendChild(a)},s=function(e){var s=document.createElement("link");s.href=e,s.rel="stylesheet",t.appendChild(s)};e("https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js",function(){["https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js","https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autorun=false","https://cdn.rawgit.com/notifyjs/notifyjs/master/dist/notify.js","https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css","https://cdn.rawgit.com/dom111/webdav-js/master/assets/css/style-min.css","https://cdn.rawgit.com/dom111/webdav-js/master/src/webdav-min.js"].forEach(function(t){t.match(/css$/)?s(t):e(t)})})}()</script>

+ 1 - 1
examples/bookmarklet/source-min.js

@@ -1 +1 @@
-javascript:!function(){var t=document.getElementsByTagName("head")[0],e=function(e,s){var a=document.createElement("script");a.src=e,a.type="text/javascript",s&&(a.onload=s),t.appendChild(a)},s=function(e){var s=document.createElement("link");s.href=e,s.rel="stylesheet",t.appendChild(s)};e("https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js",function(){["https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js","https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autorun=false","https://cdn.rawgit.com/notifyjs/notifyjs/master/dist/notify.js","https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css","https://cdn.rawgit.com/dom111/webdav-js/master/assets/css/style.min.css","https://cdn.rawgit.com/dom111/webdav-js/master/src/webdav-min.js"].forEach(function(t){t.match(/css$/)?s(t):e(t)})})}()
+javascript:!function(){var t=document.getElementsByTagName("head")[0],e=function(e,s){var a=document.createElement("script");a.src=e,a.type="text/javascript",s&&(a.onload=s),t.appendChild(a)},s=function(e){var s=document.createElement("link");s.href=e,s.rel="stylesheet",t.appendChild(s)};e("https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js",function(){["https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js","https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autorun=false","https://cdn.rawgit.com/notifyjs/notifyjs/master/dist/notify.js","https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css","https://cdn.rawgit.com/dom111/webdav-js/master/assets/css/style-min.css","https://cdn.rawgit.com/dom111/webdav-js/master/src/webdav-min.js"].forEach(function(t){t.match(/css$/)?s(t):e(t)})})}()

+ 1 - 1
examples/bookmarklet/source.js

@@ -19,7 +19,7 @@ javascript:(function() {
     };
     };
 
 
     _createScript('https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', function() {
     _createScript('https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', function() {
-        ['https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js', 'https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autorun=false', 'https://cdn.rawgit.com/notifyjs/notifyjs/master/dist/notify.js', 'https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css', 'https://cdn.rawgit.com/dom111/webdav-js/master/assets/css/style.min.css', 'https://cdn.rawgit.com/dom111/webdav-js/master/src/webdav-min.js'].forEach(function(file) {
+        ['https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js', 'https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autorun=false', 'https://cdn.rawgit.com/notifyjs/notifyjs/master/dist/notify.js', 'https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css', 'https://cdn.rawgit.com/dom111/webdav-js/master/assets/css/style-min.css', 'https://cdn.rawgit.com/dom111/webdav-js/master/src/webdav-min.js'].forEach(function(file) {
             file.match(/css$/) ? _createStyle(file) : _createScript(file);
             file.match(/css$/) ? _createStyle(file) : _createScript(file);
         });
         });
     });
     });

+ 1 - 1
index.html

@@ -51,7 +51,7 @@
                             </a>
                             </a>
                         </p>
                         </p>
                         <p>or copy/paste from the below:</p>
                         <p>or copy/paste from the below:</p>
-                       <pre class="copy-paste"><code class="js">javascript:!function(){var t=document.getElementsByTagName(&quot;head&quot;)[0],e=function(e,s){var a=document.createElement(&quot;script&quot;);a.src=e,a.type=&quot;text/javascript&quot;,s&amp;&amp;(a.onload=s),t.appendChild(a)},s=function(e){var s=document.createElement(&quot;link&quot;);s.href=e,s.rel=&quot;stylesheet&quot;,t.appendChild(s)};e(&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js&quot;,function(){[&quot;https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js&quot;,&quot;https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autorun=false&quot;,&quot;https://cdn.rawgit.com/notifyjs/notifyjs/master/dist/notify.js&quot;,&quot;https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css&quot;,&quot;https://cdn.rawgit.com/dom111/webdav-js/master/assets/css/style.min.css&quot;,&quot;https://cdn.rawgit.com/dom111/webdav-js/master/src/webdav-min.js&quot;].forEach(function(t){t.match(/css$/)?s(t):e(t)})})}()</code><a class="btn btn-primary btn-xs copy" href="#" data-clipboard-target="pre.copy-paste code">Copy</a></pre>
+                       <pre class="copy-paste"><code class="js">javascript:!function(){var t=document.getElementsByTagName(&quot;head&quot;)[0],e=function(e,s){var a=document.createElement(&quot;script&quot;);a.src=e,a.type=&quot;text/javascript&quot;,s&amp;&amp;(a.onload=s),t.appendChild(a)},s=function(e){var s=document.createElement(&quot;link&quot;);s.href=e,s.rel=&quot;stylesheet&quot;,t.appendChild(s)};e(&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js&quot;,function(){[&quot;https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.js&quot;,&quot;https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autorun=false&quot;,&quot;https://cdn.rawgit.com/notifyjs/notifyjs/master/dist/notify.js&quot;,&quot;https://cdn.rawgit.com/noelboss/featherlight/1.7.1/release/featherlight.min.css&quot;,&quot;https://cdn.rawgit.com/dom111/webdav-js/master/assets/css/style-min.css&quot;,&quot;https://cdn.rawgit.com/dom111/webdav-js/master/src/webdav-min.js&quot;].forEach(function(t){t.match(/css$/)?s(t):e(t)})})}()</code><a class="btn btn-primary btn-xs copy" href="#" data-clipboard-target="pre.copy-paste code">Copy</a></pre>
                     </aside>
                     </aside>
                 </div>
                 </div>
             </section>
             </section>