ppoffice / hexo-theme-minos

A simple and retro styled Hexo theme, concentrated more on your ideas.
http://ppoffice.github.io/hexo-theme-minos
MIT License
765 stars 202 forks source link

fix the bug of subdirect #7

Closed DexterYan closed 9 years ago

DexterYan commented 9 years ago

when I change the blog website as subdirectory, it will appear missing jquery.min.js problem. Here is the solution. Thx

ppoffice commented 9 years ago

What's this?

+<script type="text/javascript">
+    //<![CDATA[
+    (function() {
+    var shr = document.createElement('script');
+    shr.setAttribute('data-cfasync', 'false');
+    shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js';
+    shr.type = 'text/javascript'; shr.async = 'true';
+    shr.onload = shr.onreadystatechange = function() {
+    var rs = this.readyState;
+    if (rs && rs != 'complete' && rs != 'loaded') return;
+    var site_id = '0b410bd054284c1dfbd3e6d5a77d1877';
+    try { Shareaholic.init(site_id); } catch (e) {}
+    };
+    var s = document.getElementsByTagName('script')[0];
+    s.parentNode.insertBefore(shr, s);
+    })();
+    //]]>
+</script>
+<script type="text/javascript">
+    (function(w, d){
+        w['_brSiteId'] = 'Esjbij';
+        function br() {
+            var i='browsi-js'; if (d.getElementById(i)) {return;}
+            var siteId = /^[a-zA-Z0-9]{1,7}$/.test(w['_brSiteId']) ? w['_brSiteId'] : null;
+            var js=d.createElement('script'); js.id=i; js.async=true;
+            js.src='//js.brow.si/' + ( siteId != null ? siteId + '/' : '' ) + 'br.js';
+            (d.head || d.getElementsByTagName('head')[0]).appendChild(js);
+        }
+        d.readyState == 'complete' ? br() :
+            ( w.addEventListener ? w.addEventListener('load', br, false) : w.attachEvent('onload', br) );
+    })(window, document);
+    </script> 
DexterYan commented 9 years ago

sorry, forget to delete these. These are two plugin browsi-js and shareaholic.js http://dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js. You should delete it. I can make another request

2015-07-17 17:16 GMT+08:00 ppoffice notifications@github.com:

What's this?

++

— Reply to this email directly or view it on GitHub https://github.com/ppoffice/hexo-theme-minos/pull/7#issuecomment-122226247 .