mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Minor improvements (#717)
This commit is contained in:
parent
4b01801744
commit
d3a88a8d1d
8 changed files with 23 additions and 24 deletions
File diff suppressed because one or more lines are too long
7
styles/js/libs/clipboard.min.js
vendored
Normal file
7
styles/js/libs/clipboard.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
styles/js/libs/jquery-1.12.4.min.js
vendored
Normal file
5
styles/js/libs/jquery-1.12.4.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
styles/js/libs/jquery-migrate.min.js
vendored
Normal file
2
styles/js/libs/jquery-migrate.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
styles/js/libs/oldbrowserdetector.min.js
vendored
Normal file
1
styles/js/libs/oldbrowserdetector.min.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b():"function"==typeof define&&define.amd?define(b):b()}(0,function(){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),c={i:"Internet Explorer",f:"Firefox",o:"Opera",s:"Apple Safari",n:"Netscape Navigator",c:"Chrome",x:"Other"},d={i:11,f:20,c:20,o:10.6,s:{d:8,m:3},n:10},e=function(){function f(a,b){!function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}(this,f),this.options=a?Object.assign({},d,a):d,this.cb=b||function(a){return console.log("Old Browser Detected: "+a)}}return b(f,[{key:"detect",value:function(){var b=f.getBrowser(),c=0;return c="object"===a(this.options[b.n])?b.isMobile?this.options[b.n].m:this.options[b.n].d:this.options[b.n],("x"===b.n||b.v<=c)&&(this.cb.call(null,b),!0)}}],[{key:"getBrowser",value:function(){var a,b,d=navigator.userAgent,f=/ipad|ipod|iphone|android/i.test(d);if(/bot|googlebot|slurp|mediapartners|adsbot|bingbot|google web preview|like firefox|chromeframe|seamonkey|opera mini|min|meego|netfront|moblin|maemo|arora|camino|flot|k-meleon|fennec|kazehakase|galeon|epiphany|rekonq|symbian|webos/i.test(d))a="x";else if(/Trident.(\d+\.\d+)/i.test(d))a="io";else if(/MSIE.(\d+\.\d+)/i.test(d))a="i";else if(/Chrome.(\d+\.\d+)/i.test(d))a="c";else if(/Firefox.(\d+\.\d+)/i.test(d))a="f";else if(/Version.(\d+.\d+).{0,10}Safari/i.test(d))a="s";else if(/Safari.(\d+)/i.test(d))a="so";else if(/Opera.*Version.(\d+\.?\d+)/i.test(d))a="o";else if(/Opera.(\d+\.?\d+)/i.test(d))a="o";else{if(!/Netscape.(\d+)/i.test(d))return{n:"x",v:0,t:c[a]};a="n"}return"x"==a?{n:"x",v:0,t:c[a]}:(b=new Number(RegExp.$1),"so"==a&&(b=(100>b?1:130>b&&1.2)||320>b&&1.3||520>b&&2||524>b&&3||526>b&&3.2||4,a="s"),"i"==a&&7==b&&window.XDomainRequest&&(b=8),"io"==a&&(a="i",b=5<b?10:4<b?9:3.1<b?8:3<b?7:9),{n:a,v:b,t:c[a]+" "+b,isMobile:f})}}]),f}();window.oldBrowserDetector=e});
|
1
styles/js/libs/printThis.min.js
vendored
Normal file
1
styles/js/libs/printThis.min.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
!function(S){function b(e,t){t&&e.append(t.jquery?t.clone():t)}function g(e,t,n){var i,a,o,r=t.clone(n.formValues);n.formValues&&(i=r,a="select, textarea",o=t.find(a),i.find(a).each(function(e,t){S(t).val(o.eq(e).val())})),n.removeScripts&&r.find("script").remove(),n.printContainer?r.appendTo(e):r.each(function(){S(this).children().appendTo(e)})}var C;S.fn.printThis=function(e){C=S.extend({},S.fn.printThis.defaults,e);var v=this instanceof jQuery?this:S(this),t="printThis-"+(new Date).getTime();if(window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)){var n='javascript:document.write("<head><script>document.domain=\\"'+document.domain+'\\";<\/script></head><body></body>")',i=document.createElement("iframe");i.name="printIframe",i.id=t,i.className="MSIE",document.body.appendChild(i),i.src=n}else{S("<iframe id='"+t+"' name='printIframe' />").appendTo("body")}var y=S("#"+t);C.debug||y.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"}),"function"==typeof C.beforePrint&&C.beforePrint(),setTimeout(function(){var e,t,n,i;C.doctypeString&&(e=y,t=C.doctypeString,(i=(n=(n=e.get(0)).contentWindow||n.contentDocument||n).document||n.contentDocument||n).open(),i.write(t),i.close());var a,o=y.contents(),r=o.find("head"),s=o.find("body"),c=S("base");a=!0===C.base&&0<c.length?c.attr("href"):"string"==typeof C.base?C.base:document.location.protocol+"//"+document.location.host,r.append('<base href="'+a+'">'),C.importCSS&&S("link[rel=stylesheet]").each(function(){var e=S(this).attr("href");if(e){var t=S(this).attr("media")||"all";r.append("<link type='text/css' rel='stylesheet' href='"+e+"' media='"+t+"'>")}}),C.importStyle&&S("style").each(function(){r.append(this.outerHTML)}),C.pageTitle&&r.append("<title>"+C.pageTitle+"</title>"),C.loadCSS&&(S.isArray(C.loadCSS)?jQuery.each(C.loadCSS,function(e,t){r.append("<link type='text/css' rel='stylesheet' href='"+this+"'>")}):r.append("<link type='text/css' rel='stylesheet' href='"+C.loadCSS+"'>"));var d=S("html")[0];o.find("html").prop("style",d.style.cssText);var l,p,f,m=C.copyTagClasses;if(m&&(-1!==(m=!0===m?"bh":m).indexOf("b")&&s.addClass(S("body")[0].className),-1!==m.indexOf("h")&&o.find("html").addClass(d.className)),b(s,C.header),C.canvas){var u=0;v.find("canvas").addBack("canvas").each(function(){S(this).attr("data-printthis",u++)})}if(g(s,v,C),C.canvas&&s.find("canvas").each(function(){var e=S(this).data("printthis"),t=S('[data-printthis="'+e+'"]');this.getContext("2d").drawImage(t[0],0,0),S.isFunction(S.fn.removeAttr)?t.removeAttr("data-printthis"):S.each(t,function(e,t){t.removeAttribute("data-printthis")})}),C.removeInline){var h=C.removeInlineSelector||"*";S.isFunction(S.removeAttr)?s.find(h).removeAttr("style"):s.find(h).attr("style","")}b(s,C.footer),l=y,p=C.beforePrint,f=(f=l.get(0)).contentWindow||f.contentDocument||f,"function"==typeof p&&("matchMedia"in f?f.matchMedia("print").addListener(function(e){e.matches&&p()}):f.onbeforeprint=p),setTimeout(function(){y.hasClass("MSIE")?(window.frames.printIframe.focus(),r.append("<script> window.print(); <\/script>")):document.queryCommandSupported("print")?y[0].contentWindow.document.execCommand("print",!1,null):(y[0].contentWindow.focus(),y[0].contentWindow.print()),C.debug||setTimeout(function(){y.remove()},1e3),"function"==typeof C.afterPrint&&C.afterPrint()},C.printDelay)},333)},S.fn.printThis.defaults={debug:!1,importCSS:!0,importStyle:!1,printContainer:!0,loadCSS:"",pageTitle:"",removeInline:!1,removeInlineSelector:"*",printDelay:333,header:null,footer:null,base:!1,formValues:!0,canvas:!1,doctypeString:"<!DOCTYPE html>",removeScripts:!1,copyTagClasses:!1,beforePrintEvent:null,beforePrint:null,afterPrint:null}}(jQuery);
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
<h1 class="pagetitle">{PAGE_TITLE}<!-- IF GROUP_NAME --> :: {GROUP_NAME}<!-- ENDIF --></h1>
|
||||
<p class="nav"><a href="{U_GROUP_URL}">{L_GROUP_RETURN}</a></p>
|
||||
|
||||
<table class="forumline pad_4">
|
||||
<col class="row1" width="20%">
|
||||
<col class="row2" width="100%">
|
||||
|
|
|
@ -11,7 +11,12 @@
|
|||
<link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc.xml" title="{SITENAME} (Forum)" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc_bt.xml" title="{SITENAME} (Tracker)" />
|
||||
|
||||
<script type="text/javascript" src="{SITE_URL}styles/js/jquery.pack.js?v={$bb_cfg['js_ver']}"></script>
|
||||
<script type="text/javascript" src="{SITE_URL}styles/js/libs/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="{SITE_URL}styles/js/libs/jquery-migrate.min.js"></script>
|
||||
<script type="text/javascript" src="{SITE_URL}styles/js/libs/oldbrowserdetector.min.js"></script>
|
||||
<script type="text/javascript" src="{SITE_URL}styles/js/libs/clipboard.min.js"></script>
|
||||
<script type="text/javascript" src="{SITE_URL}styles/js/libs/printThis.min.js"></script>
|
||||
<script type="text/javascript" src="{SITE_URL}styles/js/jquery.pack.js"></script>
|
||||
<script type="text/javascript" src="{SITE_URL}styles/js/main.js?v={$bb_cfg['js_ver']}"></script>
|
||||
|
||||
<!-- IF INCLUDE_BBCODE_JS -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue