Modérateur : Équipe
Code : Tout sélectionner
<script type="text/javascript">window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script>
Code : Tout sélectionner
<!-- INCLUDEJS cosanostra_js/slide.js -->
<!-- INCLUDEJS cosanostra_js/jquery.mousewheel.js -->
<!-- INCLUDEJS cosanostra_js/jScrollPane-1.2.3.min.js -->
<!-- INCLUDEJS cosanostra_js/jquery-easing-1.3.pack.js -->
<!-- INCLUDEJS cosanostra_js/jquery-easing-compatibility.1.2.pack.js -->
<!-- INCLUDEJS cosanostra_js/coda-slider.1.1.1.pack.js -->
Code : Tout sélectionner
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3172109-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script>
var theInt = null;
var $crosslink, $navthumb;
var curclicked = 0;
theInterval = function(cur){
clearInterval(theInt);
if( typeof cur != 'undefined' )
curclicked = cur;
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
theInt = setInterval(function(){
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
curclicked++;
if( 6 == curclicked )
curclicked = 0;
}, 3000);
};
$(function(){
$("#main-photo-slider").codaSlider();
$navthumb = $(".nav-thumb");
$crosslink = $(".cross-link");
$navthumb
.click(function() {
var $this = $(this);
theInterval($this.parent().attr('href').slice(1) - 1);
return false;
});
theInterval();
});
</script>
Code : Tout sélectionner
<!-- IF S_ALLOW_CDN -->
<script>
WebFontConfig = {
google: {
families: ['Open+Sans:600:cyrillic-ext,latin,greek-ext,greek,vietnamese,latin-ext,cyrillic']
}
};
(function(d) {
var wf = d.createElement('script'), s = d.scripts[0];
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js';
wf.async = true;
s.parentNode.insertBefore(wf, s);
})(document);
</script>
<!-- ENDIF -->
En 3.1 aussimicka76 a écrit :Maintenant on charge les script hors <head>...</head> sur cette version
Code : Tout sélectionner
html, body {
background: #0E97DC url("./images/bg_body.jpg") no-repeat;
}
Code : Tout sélectionner
<script type="text/javascript">
(function () {
var span = document.createElement('span');
span.className = 'fa';
span.style.display = 'none';
document.body.insertBefore(span, document.body.firstChild);
function css(element, property) {
return window.getComputedStyle(element, null).getPropertyValue(property);
}
if ((css(span, 'font-family')) !== 'FontAwesome') {
var headHTML = document.head.innerHTML;
headHTML += '<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">';
document.head.innerHTML = headHTML;
}
document.body.removeChild(span);
})();
</script>
Code : Tout sélectionner
<link href="{T_STYLESHEET_LINK}" rel="stylesheet">
Code : Tout sélectionner
<link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet">
Code : Tout sélectionner
<!-- IF S_ALLOW_CDN -->
<script type="text/javascript">
(function($){
var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(),
$span = $('<span class="fa" style="display:none"></span>').appendTo('body');
if ($span.css('fontFamily') !== 'FontAwesome' ) {
$fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">');
$fa_cdn.remove();
}
$span.remove();
})(jQuery);
</script>
<!-- ENDIF -->
Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 1 invité