Minor - format code, remove errors.

pull/2487/head
jmontoyaa 7 years ago
parent 9de8402dc6
commit eb41663b78
  1. 121
      main/default_course_document/themes/elegant.css
  2. 48
      main/lp/lp_view.lib.js
  3. 49
      main/mySpace/slider.js
  4. 9
      plugin/dashboard/css/default.css

@ -1,62 +1,62 @@
@charset "UTF-8";
/* CSS Document */
body{
background-image:;
background-repeat:no-repeat;
background-position:right;
background-position:bottom;
body {
background-repeat: no-repeat;
background-position: right;
background-position: bottom;
}
#course-content{
min-height:500px;
margin:1em;
#course-content {
min-height: 500px;
margin: 1em;
}
#course-content h1,h2,h3,h4{
font-family:Arial, Helvetica, sans-serif;
#course-content h1, h2, h3, h4 {
font-family: Arial, Helvetica, sans-serif;
}
#course-content h1 {
border-bottom: solid thin #B7B7B7;
color: #8D8D8D;
border-top: solid thin #B7B7B7;
font-size: x-large;
background-color: #FAFAFA;
font-weight: bold;
padding:0.2em;
border-bottom: solid thin #B7B7B7;
color: #8D8D8D;
border-top: solid thin #B7B7B7;
font-size: x-large;
background-color: #FAFAFA;
font-weight: bold;
padding: 0.2em;
}
#course-content h2 {
font-size: large;
font-weight: bold;
padding-left: 10px;
font-size: large;
font-weight: bold;
padding-left: 10px;
}
#course-Content h3 {
font-weight: bold;
padding-left: 20px;
font-weight: bold;
padding-left: 20px;
}
.tip{
-moz-border-radius:1em;
border:1px solid black;
border:1px 2px 2px 1px;
padding:1em;
padding-left:40px;
background:url(../help.png) left;
.tip {
-moz-border-radius: 1em;
border: 1px solid black;
border: 1px 2px 2px 1px;
padding: 1em;
padding-left: 40px;
background: url(../help.png) left;
}
/* TEMPLATES STYLES */
#course-content #cover{
padding:2em 0px;
}
#course-content #cover {
padding: 2em 0px;
}
#course-content .dial_horizontal{
border:3px 0px #B7B7B7;
#course-content .dial_horizontal {
border: 3px 0px #B7B7B7;
}
#course-content .dial_vert{
border:0px 3px #B7B7B7;
#course-content .dial_vert {
border: 0px 3px #B7B7B7;
}
/*
@ -66,52 +66,47 @@ margin:1em;
padding-left:80px
}*/
#course-content p{
font-size:medium;
#course-content p {
font-size: medium;
}
/* Template cover */
#cover {
padding:1em 0px;
padding: 1em 0px;
}
/* Modèle Liste à puce */
#boom ul li{
list-style-image:url(img/puce.png);
list-style-type:disc;
font-size:medium;
line-height:20px;
margin-bottom:0.5em;
#boom ul li {
list-style-image: url(img/puce.png);
list-style-type: disc;
font-size: medium;
line-height: 20px;
margin-bottom: 0.5em;
}
#boom ul li:hover{
list-style-image:url(img/puce_hover.png);
#boom ul li:hover {
list-style-image: url(img/puce_hover.png);
}
#argument_1{
#argument_1 {
}
#argument_2{
#argument_2 {
}
#glossary{
padding:0.2em;
#glossary {
padding: 0.2em;
}
/*Certificate
You can set your own certificate
*/
/*#certificate{
background:url('img/certificate_blue.jpg') no-repeat;
padding:0px 50px 0px;
@ -120,10 +115,10 @@ list-style-image:url(img/puce_hover.png);
width:700px;
}*/
#certificate{
background:url('img/certificate_grey.jpg') no-repeat;
padding:0px 00px 00px;
padding-top:20px;
height:500px;
width:700px;
#certificate {
background: url('img/certificate_grey.jpg') no-repeat;
padding: 0px 00px 00px;
padding-top: 20px;
height: 500px;
width: 700px;
}

@ -14,9 +14,31 @@ var iframehide="no";
//var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];
var FFextraHeight=32; //parseFloat(getFFVersion)>=0.1? 16 : 0; //extra height in px to add to iframe in FireFox 1.0+ browsers
function resizeIframe(frameid) {
var currentfr=document.getElementById(frameid);
if (currentfr && !window.opera){
currentfr.style.display="block";
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight){ //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
}
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if(currentfr.height < 580){
currentfr.height = 580;
}
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false);
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe); // Bug fix line
currentfr.attachEvent("onload", readjustIframe);
}
}
}
function resizeCaller() {
if (document.getElementById)
resizeIframe(iframeid);
if (document.getElementById)
resizeIframe(iframeid);
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeid] : document.getElementById(iframeid);
@ -24,28 +46,6 @@ function resizeCaller() {
}
}
function resizeIframe(frameid){
var currentfr=document.getElementById(frameid);
if (currentfr && !window.opera){
currentfr.style.display="block";
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight){ //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
}
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if(currentfr.height < 580){
currentfr.height = 580;
}
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false);
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe); // Bug fix line
currentfr.attachEvent("onload", readjustIframe);
}
}
}
function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt;
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement;

@ -1,10 +1,9 @@
// Set the initial height
var sliderHeight = "80px";
$(document).ready(function(){
$(document).ready(function () {
// Show the slider content
$('.slider').show();
$('.slider').each(function () {
var current = $(this);
current.attr("box_h", current.height());
@ -13,56 +12,16 @@ $(document).ready(function(){
$(".slider").css("height", sliderHeight);
});
function sliderGetHeight(foo_var)
{
var current = $(foo_var);
if (current.height() <= 80){
return current.height()+30;
}
else {
return current.height();
}
}
function sliderSetHeight(foo_var, foo_height)
{
$(foo_var).each(function () {
var current = $(this);
current.attr("box_h", foo_height);
});
}
function controlSliderMenu(foo_height_a)
{
if (foo_height_a <= 80){
sliderOpen();
slider_state = "open"
$(".slider_menu").empty();
}
}
// Set the initial slider state
var slider_state = "close";
function getSliderState()
{
return slider_state;
}
function setSliderState(foo_slider_state)
{
slider_state = foo_slider_state;
}
function sliderAction()
{
if (slider_state == "close")
{
if (slider_state == "close") {
sliderOpen();
slider_state = "open"
$(".slider_menu").html('<a href="#" onclick="return sliderAction();"><img src="../img/icons/22/zoom_out.png"></a>');
}
else if (slider_state == "open")
{
} else if (slider_state == "open") {
sliderClose();
slider_state = "close";
$(".slider_menu").html('<a href="#" onclick="return sliderAction();"><img src="../img/icons/22/zoom_in.png"></a>');
@ -80,5 +39,5 @@ function sliderOpen()
function sliderClose()
{
$(".slider").animate({"height": "0px"}, {duration: "fast" });
$(".slider").animate({"height": sliderHeight}, {duration: "fast" });
$(".slider").animate({"height": sliderHeight}, {duration: "fast" });
}

@ -11,12 +11,11 @@
{color:#000;}
.color-red h3,
.color-blue h3,
.color-orange h3
{color:#FFF;}
/* End Colors */
.color-orange h3 {
color: #FFF;
}
//#columns #column1 .widget { margin: 30px 35px 0 25px; }
//#columns #column3 .widget { margin: 30px 25px 0 35px; }
/* End Colors */
.widget {
margin: 30px 20px 0 20px;

Loading…
Cancel
Save