...
<link rel="stylesheet" media='screen and (min-width: 801px)' href ="css/styles.css">
<link rel="stylesheet" media='screen and (max-width: 800px)' href ="css/stylesMob.css">
<script type="text/javascript">
javascript" src="js/desktopLayout.js"></script>
<script type="text/javascript" src="js/mobileLayout.js"></script> var type = 'text/javascript';
desktopLayout.js:
var srcresolucao = ($(window).width() > 800) ? "js/desktopLayout.js"'desktop' : "js/mobileLayout.js";
$('head').append('<script type ="' +type+ '" src="' +src+ '">');
'mobile';
$(window).resize(function(){
$('script[src $= "Layout.js"]').remove();
var type = 'text/javascript';
var srcresolucao = ($(window).width() > 800) ? "js/desktopLayout.js"'desktop' : "js/mobileLayout.js";'mobile';
$('head')console.appendlog('<script type ="' +type+ '" src="' +src+ '">'resolucao);
})
;
</script>
desktopLayout.js:
...
//funções todas aqui
...
function runSiteDesktopslide4Slider() {
if (resolucao != 'desktop') varreturn;
$("#photosSlide4 resolucao> =div:eq(0) $img:gt(window0)").widthfadeOut(0);
$("#photosSlide4 > 800 ? 'desktop' div:eq(1) 'mobile';img:gt(0)").fadeOut(0);
$("#photosSlide4 > div:eq(2) $img:gt(window0)").resizefadeOut(0);
setInterval(function(){
{
$('#photosSlide4 resolucao> =div:eq(0) $img:eq(window0)').widthfadeOut(800).next().fadeIn(300).end().appendTo('#photosSlide4 > 800 ? 'desktop' div: 'mobile';eq(0)');
$('#photosSlide4 > div:eq(1) consoleimg:eq(0)').logfadeOut(resolucao800);
.next().fadeIn(300).end().appendTo('#photosSlide4 > }div:eq(1)');
if $(resolucao'#photosSlide4 !=> 'desktop'div:eq(2) {
return; // usar sempre no seu códigoimg:eq(0)').fadeOut(800).next().fadeIn(300).end().appendTo('#photosSlide4 esta> verificaçãodiv:eq(2)');
}, 3000);
else
}
function runSiteDesktop() {
phrasesMarginsRandomSLide1();
pizzasSlider3Animations();
navSlider3HoverPhrase();
arrowsLeftRightSlide();
sizingAndRisizing();
navBarAnimation();
contactFancyBox();
logoAnimation();
navBarSlider();
scrollEvents();
slide4Slider();
}
}
$(document).ready(function() {
runSiteDesktop();
});