-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8df4db
commit 5d82195
Showing
51 changed files
with
1,075 additions
and
814 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
var myTheme = { | ||
printButton : false, | ||
init : function(){ | ||
var ie_v = $exe.isIE(); | ||
if (ie_v && ie_v<8) return false; | ||
var tit = $exe_i18n.menu+" ("+$exe_i18n.hide.toLowerCase()+")"; | ||
var navToggler = '<p id="header-options">'; | ||
navToggler += '<a href="#" class="hide-nav" id="toggle-nav" title="'+tit+'">'; | ||
navToggler += '<span>'+$exe_i18n.menu+'</span>'; | ||
navToggler += '</a>'; | ||
if (myTheme.printButton==true && typeof(window.print)=='function') { | ||
navToggler += '<a href="#" id="print-page">'; | ||
navToggler += '<span>'+$exe_i18n.print+'</span>'; | ||
navToggler += '</a>'; | ||
} | ||
navToggler += '</p>'; | ||
var l = $(navToggler); | ||
var nav = $("#siteNav"); | ||
nav.before(l); | ||
$("#toggle-nav").click(function(){ | ||
myTheme.toggleMenu(this); | ||
return false; | ||
}); | ||
$("#print-page").click(function(){ | ||
window.print(); | ||
return false; | ||
}); | ||
if ( $("A",nav).attr("class").indexOf("active")==0 ) $("BODY").addClass("home-page"); | ||
var url = window.location.href; | ||
url = url.split("?"); | ||
if (url.length>1){ | ||
if (url[1].indexOf("nav=false")!=-1) { | ||
myTheme.hideMenu(); | ||
} | ||
} | ||
// Set the min-height for the content wrapper | ||
$("#main-wrapper").css("min-height",(nav.height()+25)+"px"); | ||
}, | ||
hideMenu : function(){ | ||
$("#siteNav").hide(); | ||
$(document.body).addClass("no-nav"); | ||
myTheme.params("add"); | ||
var tit = $exe_i18n.menu+" ("+$exe_i18n.show.toLowerCase()+")"; | ||
$("#toggle-nav").attr("class","show-nav").attr("title",tit); | ||
}, | ||
toggleMenu : function(e){ | ||
if (typeof(myTheme.isToggling)=='undefined') myTheme.isToggling = false; | ||
if (myTheme.isToggling) return false; | ||
|
||
var l = $("#toggle-nav"); | ||
|
||
if (!e && $(window).width()<900 && l.css("display")!='none') return false; // No reset in mobile view | ||
if (!e) { | ||
var tit = $exe_i18n.menu+" ("+$exe_i18n.show.toLowerCase()+")"; | ||
l.attr("class","show-nav").attr("title",tit); // Reset | ||
} | ||
|
||
myTheme.isToggling = true; | ||
|
||
if (l.attr("class")=='hide-nav') { | ||
var tit = $exe_i18n.menu+" ("+$exe_i18n.show.toLowerCase()+")"; | ||
l.attr("class","show-nav").attr("title",tit); | ||
$("#siteFooter").hide(); | ||
$("#siteNav").slideUp(400,function(){ | ||
$(document.body).addClass("no-nav"); | ||
$("#siteFooter").show(); | ||
myTheme.isToggling = false; | ||
}); | ||
myTheme.params("add"); | ||
} else { | ||
var tit = $exe_i18n.menu+" ("+$exe_i18n.hide.toLowerCase()+")"; | ||
l.attr("class","hide-nav").attr("title",tit); | ||
$(document.body).removeClass("no-nav"); | ||
$("#siteNav").slideDown(400,function(){ | ||
myTheme.isToggling = false; | ||
}); | ||
myTheme.params("delete"); | ||
} | ||
|
||
}, | ||
param : function(e,act) { | ||
if (act=="add") { | ||
var ref = e.href; | ||
var con = "?"; | ||
if (ref.indexOf(".html?")!=-1) con = "&"; | ||
var param = "nav=false"; | ||
if (ref.indexOf(param)==-1) { | ||
ref += con+param; | ||
e.href = ref; | ||
} | ||
} else { | ||
// This will remove all params | ||
var ref = e.href; | ||
ref = ref.split("?"); | ||
e.href = ref[0]; | ||
} | ||
}, | ||
params : function(act){ | ||
$("A",".pagination").each(function(){ | ||
myTheme.param(this,act); | ||
}); | ||
}, | ||
inIframe : function(){ | ||
try { | ||
return window.self !== window.top; | ||
} catch (e) { | ||
return true; | ||
} | ||
}, | ||
printContent : function(bodyClassName){ | ||
if (bodyClassName.indexOf("exe-authoring-page")==0) { | ||
if (typeof(_)!='undefined') { | ||
eXe.app.alert(_("File") + " - " + _("Print") + " (Ctrl+P)"); | ||
return false; | ||
} | ||
} | ||
if (!this.inIframe()) { | ||
window.print(); | ||
} else { | ||
var isIE = navigator.appName.indexOf('Microsoft') !=-1; | ||
if (isIE) alert('Ctrl+P'); | ||
var a = window.open(self.location.href); | ||
if (!isIE) a.onload = function() { this.print() } | ||
a.focus(); | ||
} | ||
}, | ||
common : { | ||
init : function(c){ | ||
var iDevices = $(".iDevice_wrapper"); | ||
var firstIsText = false; | ||
iDevices.each(function(i){ | ||
if (iDevices.length>1 && i==0 && this.className.indexOf("FreeTextIdevice")!=-1) { | ||
$(".iDevice",this).css("margin-top",0); | ||
firstIsText = true; | ||
} | ||
}); | ||
// Print button in authoring-page, SCORM and IMS | ||
if (myTheme.printButton==true && ($("body").hasClass("exe-authoring-page") || $("body").hasClass("exe-ims") || $("body").hasClass("exe-scorm"))) { | ||
var extra = ''; | ||
if (iDevices.length>1 && !firstIsText) extra = ' class="with-toggler"'; | ||
$("#nodeDecoration").after('<p id="printNode"'+extra+'><a href="#" title="'+$exe_i18n.print+'"><span>'+$exe_i18n.print+'</span></a></p>'); | ||
$("#printNode a").click(function(e){ | ||
myTheme.printContent(document.body.className); | ||
}); | ||
} | ||
} | ||
} | ||
} | ||
|
||
$(function(){ | ||
if ($("body").hasClass("exe-web-site")) { | ||
myTheme.init(); | ||
} | ||
myTheme.common.init(); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,15 @@ | ||
<?xml version="1.0"?> | ||
<theme> | ||
<name>Kids</name> | ||
<name>INTEF</name> | ||
<version>2019</version> | ||
<compatibility>2.4</compatibility> | ||
<author>Francisco Javier Pulido Cuadrado and Ignacio Gros (http://www.gros.es/) for eXeLearning.net</author> | ||
<license>Creative Commons by-sa</license> | ||
<license-url>http://creativecommons.org/licenses/by-sa/3.0/</license-url> | ||
<description>For Kids! Colourful, big icons, big fonts... Responsive design. Design and icons by Francisco Javier Pulido Cuadrado. CSS and JavaScript by Ignacio Gros. | ||
|
||
This Style uses the Open Sans font family, designed by Steve Matteson. Open Sans License (Apache License, version 2.0): | ||
|
||
Copyright: Steve Matteson. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</description> | ||
<author>Ignacio Gros</author> | ||
<author-url>http://www.gros.es/</author-url> | ||
<license>Creative Commons by-sa</license> | ||
<license-url>http://creativecommons.org/licenses/by-sa/4.0/</license-url> | ||
<description>Estilo realizado por Ignacio Gros (http://www.gros.es/) para eXeLearning (http://exelearning.net/). Iconos de los iDevices e imágenes de fondo, cabecera y pie de página: INTEF (https://intef.es/), con licencia Creative Attribution-ShareAlike 4.0 International. Iconos de impresión y menú: Google (https://github.com/google/material-design-icons), con licencia Apache 2.0. Tipografía Encode Sans: Impallari Type (https://github.com/impallari/Encode-Sans), con licencia SIL Open Font License.</description> | ||
<extra-head><![CDATA[<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
]]></extra-head> | ||
<extra-body><![CDATA[<script type="text/javascript" src="_style_js.js"></script>]]></extra-body> | ||
<edition-extra-body><![CDATA[<script type="text/javascript"> | ||
$(".iDevice_wrapper").each(function(i){ | ||
if (this.className.indexOf("em_iDevice")!=-1) { | ||
var e = $(this); | ||
// Provisional solution so the user can use the iDevice Editor to choose an icon | ||
$(".iDevice_header",e).each(function(){ | ||
var i = this.style.backgroundImage; | ||
if (i!="") $(".iDeviceTitle",this).css("background-image",i); | ||
this.style.backgroundImage = "none"; | ||
}); | ||
var t = $(".iDeviceTitle",e); | ||
var c = t.css("background-image"); | ||
if (c!="") { | ||
t.css("background-image","none"); | ||
e.prepend("<div class='icon_wrapper' style='background-image:"+c+"'></div>"); | ||
} | ||
} | ||
}); | ||
</script>]]></edition-extra-body> | ||
<edition-extra-head><![CDATA[<script type="text/javascript">if (typeof(exe_style)!='undefined' && exe_style.indexOf("content.css")!=-1) document.write('<scr'+'ipt type="text/javascript" src="'+exe_style.replace("content.css","_intef_js.js")+'"></scr'+'ipt>')</script>]]></edition-extra-head> | ||
<extra-body><![CDATA[<script type="text/javascript" src="_intef_js.js"></script>]]></extra-body> | ||
</theme> |
Oops, something went wrong.