From 6a11aa4aaa8f873de898de745a8394c57509640a Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Tue, 27 Feb 2018 01:35:04 +0100 Subject: [PATCH] suite --- app/assets/javascripts/public.js.coffee | 1 - app/views/layouts/public.html.haml | 120 +++++------------------- 2 files changed, 23 insertions(+), 98 deletions(-) diff --git a/app/assets/javascripts/public.js.coffee b/app/assets/javascripts/public.js.coffee index 6556f13..7e2d48a 100644 --- a/app/assets/javascripts/public.js.coffee +++ b/app/assets/javascripts/public.js.coffee @@ -75,7 +75,6 @@ top = 20 @resize = () -> - top = $("#menu_top_container").outerHeight() #$("body").css("padding-top", $("#menu_top_container").outerHeight()+"px"); diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index 3083115..0dc73e2 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -227,108 +227,42 @@ #slider_left .slider_home - - - - - :scss - - #clip_header{ - cursor:pointer; - } - #bxslider{ - iframe{ - //height:416px; - //width:740px; - } - .inner{ - - //height:416px; - max-width:75%; - width:75%; - position:relative; - } - - } - - #slider_banner{ - - //height:416px; - position:relative; - - - .right_slider{ - - - - #slider_right{ - background:white; - - box-sizing:border-box; - } - - } - .slider_home{ - li{ - //height:506px; - overflow:hidden; - background:rgb(50,50,50); - left:0; - - } - } - } :javascript - var slider; - slider = $('#bxslider').bxSlider({ - video: true, - auto: true, - pause:4500, - speed:2000, - easing: 'ease', - mode: 'fade', - useCSS: false, - startSlide:0, - infiniteLoop:true, - + $(document).ready(function(){ + $('#bxslider').bxSlider({ + nextText: '>', + prevText: '<' + }); }); - - - @@ -350,15 +284,7 @@ .clear - - :coffeescript - resize_corps = () -> - test = $(".width_sidebar").width() - $(".width_sidebar #sidebar").outerWidth() - 1 - $(".width_sidebar #corps").css - "width" :test+"px" - resize_corps() - $(window).on "resize", -> - resize_corps() + :javascript resize()