Skip to content

Commit 243ed07

Browse files
Add files via upload
1 parent 29784dd commit 243ed07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+9588
-0
lines changed

2tercios.jpg.png

2.68 KB
Loading

4sextos.jpg.png

2.87 KB
Loading

EncodeSans-Light_latin-ext.woff2

17.7 KB
Binary file not shown.

EncodeSans-Light_latin.woff2

19.3 KB
Binary file not shown.

_style_icons.png

2.41 KB
Loading

_style_icons_white.png

2.32 KB
Loading

_style_input_checkbox.png

3.23 KB
Loading

_style_js.js

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
var myTheme = {
2+
init : function(){
3+
var ie_v = $exe.isIE();
4+
if (ie_v && ie_v<8) return false;
5+
setTimeout(function(){
6+
$(window).resize(function() {
7+
myTheme.reset();
8+
});
9+
},1000);
10+
var l = $('<p id="nav-toggler"><a href="#" onclick="myTheme.toggleMenu(this);return false" class="hide-nav" id="toggle-nav" title="'+$exe_i18n.hide+'"><span>'+$exe_i18n.menu+'</span></a></p>');
11+
$("#siteNav").before(l);
12+
$("#topPagination .pagination").prepend('<a href="#" onclick="window.print();return false" title="'+$exe_i18n.print+'" class="print-page"><span>'+$exe_i18n.print+'</span></a> ');
13+
this.addNavArrows();
14+
this.bigInputs();
15+
var url = window.location.href;
16+
url = url.split("?");
17+
if (url.length>1){
18+
if (url[1].indexOf("nav=false")!=-1) {
19+
myTheme.hideMenu();
20+
return false;
21+
}
22+
}
23+
myTheme.setNavHeight();
24+
// We execute this more than once because sometimes the height changes because of the videos, etc.
25+
setTimeout(function(){
26+
myTheme.setNavHeight();
27+
},1000);
28+
$(window).load(function(){
29+
myTheme.setNavHeight();
30+
});
31+
},
32+
isMobile : function(){
33+
try {
34+
document.createEvent("TouchEvent");
35+
return true;
36+
} catch(e) {
37+
return false;
38+
}
39+
},
40+
bigInputs : function(){
41+
if (this.isMobile()) {
42+
$(".MultiSelectIdevice,.MultichoiceIdevice,.QuizTestIdevice,.TrueFalseIdevice").each(function(){
43+
$('input:radio',this).screwDefaultButtons({
44+
image: 'url("_style_input_radio.png")',
45+
width: 30,
46+
height: 30
47+
});
48+
$('input:checkbox',this).screwDefaultButtons({
49+
image: 'url("_style_input_checkbox.png")',
50+
width: 30,
51+
height: 30
52+
});
53+
$(this).addClass("custom-inputs");
54+
});
55+
}
56+
},
57+
addNavArrows : function(){
58+
$("#siteNav ul ul .daddy").each(
59+
function(){
60+
this.innerHTML+='<span> &#9658;</span>';
61+
}
62+
);
63+
},
64+
hideMenu : function(){
65+
$("#siteNav").hide();
66+
$(document.body).addClass("no-nav");
67+
myTheme.params("add");
68+
$("#toggle-nav").attr("class","show-nav").attr("title",$exe_i18n.show);
69+
},
70+
setNavHeight : function(){
71+
var n = $("#siteNav");
72+
var c = $("#main-wrapper");
73+
var nH = n.height();
74+
var cH = c.height();
75+
var isMobile = $("#siteNav").css("float")=="none";
76+
if (cH<nH) {
77+
cH = nH;
78+
if (!isMobile) {
79+
var s = c.attr("style");
80+
if (s) c.css("min-height",cH+"px");
81+
else c.attr("style","height:auto!important;height:"+cH+"px;min-height:"+cH+"px");
82+
}
83+
}
84+
var h = (cH-nH+24)+"px";
85+
var m = 0;
86+
if (isMobile) {
87+
h = 0;
88+
m = "15px";
89+
} else if (n.css("display")=="table") {
90+
h = 0;
91+
}
92+
n.css({
93+
"padding-bottom":h,
94+
"margin-bottom":m
95+
});
96+
},
97+
toggleMenu : function(e){
98+
if (typeof(myTheme.isToggling)=='undefined') myTheme.isToggling = false;
99+
if (myTheme.isToggling) return false;
100+
101+
var l = $("#toggle-nav");
102+
103+
if (!e && $(window).width()<900 && l.css("display")!='none') return false; // No reset in mobile view
104+
if (!e) l.attr("class","show-nav").attr("title",$exe_i18n.show); // Reset
105+
106+
myTheme.isToggling = true;
107+
108+
if (l.attr("class")=='hide-nav') {
109+
l.attr("class","show-nav").attr("title",$exe_i18n.show);
110+
$("#siteFooter").hide();
111+
$("#siteNav").slideUp(400,function(){
112+
$(document.body).addClass("no-nav");
113+
$("#siteFooter").show();
114+
myTheme.isToggling = false;
115+
});
116+
myTheme.params("add");
117+
} else {
118+
l.attr("class","hide-nav").attr("title",$exe_i18n.hide);
119+
$(document.body).removeClass("no-nav");
120+
$("#siteNav").slideDown(400,function(){
121+
myTheme.isToggling = false;
122+
myTheme.setNavHeight();
123+
});
124+
myTheme.params("delete");
125+
}
126+
127+
},
128+
param : function(e,act) {
129+
if (act=="add") {
130+
var ref = e.href;
131+
var con = "?";
132+
if (ref.indexOf(".html?")!=-1 || ref.indexOf(".htm?")!=-1) con = "&";
133+
var param = "nav=false";
134+
if (ref.indexOf(param)==-1) {
135+
ref += con+param;
136+
e.href = ref;
137+
}
138+
} else {
139+
// This will remove all params
140+
var ref = e.href;
141+
ref = ref.split("?");
142+
e.href = ref[0];
143+
}
144+
},
145+
params : function(act){
146+
$("A",".pagination").each(function(){
147+
myTheme.param(this,act);
148+
});
149+
},
150+
reset : function() {
151+
myTheme.toggleMenu();
152+
myTheme.setNavHeight();
153+
},
154+
getCustomIcons : function(){
155+
// Provisional solution so the user can use the iDevice Editor to choose an icon
156+
$(".iDevice_header").each(function(){
157+
var i = this.style.backgroundImage;
158+
if (i!="") $(".iDeviceTitle",this).css("background-image",i);
159+
this.style.backgroundImage = "none";
160+
});
161+
}
162+
}
163+
$(function(){
164+
if ($("body").hasClass("exe-web-site")) {
165+
myTheme.init();
166+
}
167+
myTheme.getCustomIcons();
168+
});
169+
170+
/*!
171+
* ScrewDefaultButtons v2.0.6
172+
* http://screwdefaultbuttons.com/
173+
*
174+
* Licensed under the MIT license.
175+
* Copyright 2013 Matt Solano http://mattsolano.com
176+
*
177+
* Date: Mon February 25 2013
178+
*/(function(e,t,n,r){var i={init:function(t){var n=e.extend({image:null,width:50,height:50,disabled:!1},t);return this.each(function(){var t=e(this),r=n.image,i=t.data("sdb-image");i&&(r=i);r||e.error("There is no image assigned for ScrewDefaultButtons");t.wrap("<div >").css({display:"none"});var s=t.attr("class"),o=t.attr("onclick"),u=t.parent("div");u.addClass(s);u.attr("onclick",o);u.css({"background-image":r,width:n.width,height:n.height,cursor:"pointer"});var a=0,f=-n.height;if(t.is(":disabled")){a=-(n.height*2);f=-(n.height*3)}t.on("disableBtn",function(){t.attr("disabled","disabled");a=-(n.height*2);f=-(n.height*3);t.trigger("resetBackground")});t.on("enableBtn",function(){t.removeAttr("disabled");a=0;f=-n.height;t.trigger("resetBackground")});t.on("resetBackground",function(){t.is(":checked")?u.css({backgroundPosition:"0 "+f+"px"}):u.css({backgroundPosition:"0 "+a+"px"})});t.trigger("resetBackground");if(t.is(":checkbox")){u.on("click",function(){t.is(":disabled")||t.change()});u.addClass("styledCheckbox");t.on("change",function(){if(t.prop("checked")){t.prop("checked",!1);u.css({backgroundPosition:"0 "+a+"px"})}else{t.prop("checked",!0);u.css({backgroundPosition:"0 "+f+"px"})}})}else if(t.is(":radio")){u.addClass("styledRadio");var l=t.attr("name");u.on("click",function(){!t.prop("checked")&&!t.is(":disabled")&&t.change()});t.on("change",function(){if(t.prop("checked")){t.prop("checked",!1);u.css({backgroundPosition:"0 "+a+"px"})}else{t.prop("checked",!0);u.css({backgroundPosition:"0 "+f+"px"});var n=e('input[name="'+l+'"]').not(t);n.trigger("radioSwitch")}});t.on("radioSwitch",function(){u.css({backgroundPosition:"0 "+a+"px"})});var c=e(this).attr("id"),h=e('label[for="'+c+'"]');h.on("click",function(){u.trigger("click")})}if(!e.support.leadingWhitespace){var c=e(this).attr("id"),h=e('label[for="'+c+'"]');h.on("click",function(){u.trigger("click")})}})},check:function(){return this.each(function(){var t=e(this);i.isChecked(t)||t.change()})},uncheck:function(){return this.each(function(){var t=e(this);i.isChecked(t)&&t.change()})},toggle:function(){return this.each(function(){var t=e(this);t.change()})},disable:function(){return this.each(function(){var t=e(this);t.trigger("disableBtn")})},enable:function(){return this.each(function(){var t=e(this);t.trigger("enableBtn")})},isChecked:function(e){return e.prop("checked")?!0:!1}};e.fn.screwDefaultButtons=function(t,n){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return i.init.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.screwDefaultButtons")};return this})(jQuery);

base.css

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)