",e.width="100%",e.height=$(window).height()-$("nav").height(),e.scrolling="auto",e.style="width:100%; height:926px",e.src=b.url,e.contentWindow.document.open(),e.contentWindow.document.write(f),e.contentWindow.document.close()}})})},common:function(){function a(a){var b=parseInt(a.children(".cd-tabs-navigation").width()),c=parseInt(a.width());a.scrollLeft()>=b-c?a.parent(".cd-tabs").addClass("is-ended"):a.parent(".cd-tabs").removeClass("is-ended")}var b=$(".cd-tabs");b.each(function(){var b=$(this),c=b.find("ul.cd-tabs-navigation"),d=b.children("ul.cd-tabs-content"),e=b.find("nav");c.on("click","a",function(a){a.preventDefault();var b=$(this);if(!b.hasClass("selected")){var e=b.data("content"),f=d.find('li[data-content="'+e+'"]'),g=f.innerHeight();b.dblclick(function(){f.children("iframe").attr("src",f.children("iframe").attr("src"))}),c.find("a.selected").removeClass("selected"),b.addClass("selected"),f.addClass("selected").siblings("li").removeClass("selected"),d.animate({height:g},200)}}),a(e),e.on("scroll",function(){a($(this))})}),$(window).on("resize",function(){b.each(function(){var b=$(this);a(b.find("nav")),b.find(".cd-tabs-content").css("height","auto")}),resizeIframe()})}}},UTIL={exec:function(a,b){var c=MANAGETHIS;b=void 0===b?"init":b,""!==a&&c[a]&&"function"==typeof c[a][b]&&c[a][b]()},init:function(){var a=document.body,b=a.getAttribute("data-controller"),c=a.getAttribute("data-action");UTIL.exec("common"),UTIL.exec(b),UTIL.exec(b,c)}};-1===navigator.userAgent.indexOf("PhantomJS")&&$(document).ready(UTIL.init);
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sickrage",
3 | "version": "4.0.72",
4 | "private": true,
5 | "repository": {
6 | "type": "git",
7 | "url": "git+https://github.com/SickRage/SickRage.git"
8 | },
9 | "bugs": {
10 | "url": "https://github.com/SickRage/SickRage/issues"
11 | },
12 | "homepage": "https://github.com/SickRage/SickRage#readme",
13 | "scripts": {
14 | "test": "grunt travis",
15 | "security": "snyk test"
16 | },
17 | "devDependencies": {
18 | "chai": "^3.4.1",
19 | "grunt": "^0.4.5",
20 | "grunt-bower-concat": "^0.6.0",
21 | "grunt-bower-task": "^0.4.0",
22 | "grunt-cli": "^0.1.13",
23 | "grunt-contrib-clean": "^0.7.0",
24 | "grunt-contrib-copy": "^0.8.2",
25 | "grunt-contrib-cssmin": "^0.14.0",
26 | "grunt-contrib-jshint": "^0.11.3",
27 | "grunt-contrib-sass": "^0.9.2",
28 | "grunt-contrib-uglify": "^0.11.0",
29 | "grunt-mocha": "^0.4.15",
30 | "grunt-sass": "^1.1.0",
31 | "load-grunt-tasks": "^3.4.0",
32 | "mocha": "^2.3.4",
33 | "snyk": "^1.6.1"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------