Commit 9bbf49c4 by Mykhailo Makohin

add image slider

parent 70d5dd0b
...@@ -14,9 +14,6 @@ ...@@ -14,9 +14,6 @@
//= require jquery-ui //= require jquery-ui
//= require jBox.all //= require jBox.all
//= require demo //= require demo
//= require playground-avatars
//= require playground-inception
//= require playground-login
//= require jquery.remotipart //= require jquery.remotipart
//= require bootstrap.min //= require bootstrap.min
//= require outdatedbrowser //= require outdatedbrowser
......
...@@ -17,10 +17,11 @@ jQuery(document).ready(function($){ ...@@ -17,10 +17,11 @@ jQuery(document).ready(function($){
detectOutdatedBrowser(); detectOutdatedBrowser();
// initPlaceOfCubes(); // initPlaceOfCubes();
// initGallerySlider(); //initGallerySlider();
//mobilePartners(); //mobilePartners();
// initTip(); // initTip();
// initMap(); // initMap();
initSlider();
topTip(); topTip();
// initTooltipster(); // initTooltipster();
playStopVideoInModal(); playStopVideoInModal();
...@@ -29,7 +30,11 @@ jQuery(document).ready(function($){ ...@@ -29,7 +30,11 @@ jQuery(document).ready(function($){
// $('[data-toggle="popover"]').popover({title: "<span class=\"usr_surname\">Фондар</span><span class=\"usr_name\">Вікторія Тараневська <a href=\"#\" class=\"round_link\"><i class=\"icon icon_fb\"></i></span>", content: "<div class=\"usr_contributions\">Внесків 3</div><div class=\"usr_funds\"><div class=\"usr_funds_value\">на суму: 14 200 UAH</div></div><div class=\"usr_volunteering\">Волонтерство 2</div>", html: true, placement: "top"}); // $('[data-toggle="popover"]').popover({title: "<span class=\"usr_surname\">Фондар</span><span class=\"usr_name\">Вікторія Тараневська <a href=\"#\" class=\"round_link\"><i class=\"icon icon_fb\"></i></span>", content: "<div class=\"usr_contributions\">Внесків 3</div><div class=\"usr_funds\"><div class=\"usr_funds_value\">на суму: 14 200 UAH</div></div><div class=\"usr_volunteering\">Волонтерство 2</div>", html: true, placement: "top"});
}) })
function initSlider(){
$(document).ready(function(){
$('.slider').bxSlider();
});
}
function scrollToTop() { function scrollToTop() {
$(window).scroll(function(){ $(window).scroll(function(){
if ($(this).scrollTop() > 1000) { if ($(this).scrollTop() > 1000) {
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
%meta{:content => "", :name => "description"} %meta{:content => "", :name => "description"}
%meta{:content => "width=device-width", :name => "viewport"} %meta{:content => "width=device-width", :name => "viewport"}
%meta{:content => "IE=edge", "http-equiv" => "X-UA-Compatible"} %meta{:content => "IE=edge", "http-equiv" => "X-UA-Compatible"}
%link{:href => "https://cdn.jsdelivr.net/bxslider/4.2.12/jquery.bxslider.css", :rel => "stylesheet"}/
%script{:src => "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"}
%script{:src => "https://cdn.jsdelivr.net/bxslider/4.2.12/jquery.bxslider.min.js"}
/Fonts /Fonts
%link{:href => "//fonts.googleapis.com/css?family=Open+Sans:400,600,700", :rel => "stylesheet", :type => "text/css"} %link{:href => "//fonts.googleapis.com/css?family=Open+Sans:400,600,700", :rel => "stylesheet", :type => "text/css"}
%link{:href => "//fonts.googleapis.com/css?family=PT+Sans:400,700italic,700,400italic", :rel => "stylesheet", :type => "text/css"} %link{:href => "//fonts.googleapis.com/css?family=PT+Sans:400,700italic,700,400italic", :rel => "stylesheet", :type => "text/css"}
......
description .project_content
\ No newline at end of file .container
.text_container
= raw @project.description
#slider.beer-slider{"data-beer-label" => "before"}
= image_tag(@project.photo_before.url)
.beer-reveal{"data-beer-label" => "after"}
= image_tag(@project.photo_after.url)
documents .files_block
\ No newline at end of file .container
%ul.files_list.clearfix
%li.file_item_wrap
%a.file_item{:href => "#"}
- @project.project_documents.each do |project_document|
#{project_document.document_name}
%span.file_img
= image_tag ("file_pdf_large.png")
links .container
\ No newline at end of file .text_container
%h3
Корисні лінки
- @project.project_links.each do |project_link|
%ul.list
%li
#{project_link.title}
%a{:href => "#{project_link.site}"} #{project_link.site}
photos .slider
\ No newline at end of file = image_tag("1_1.jpg", width: "100%")
= image_tag("1_2.jpg", width: "100%")
video .container
\ No newline at end of file .text_container
- @project.project_videos.each do |project_video|
#{project_video.short}
= raw project_video.short
/ .video_container
/ %iframe{:allowfullscreen => "", :frameborder => "0", :height => "", :src => "#{project_video.video_link}", :width => "100%"}
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
.large_progress_wrap .large_progress_wrap
.large_progress_title .large_progress_title
= t "#{@project.status}" = t "#{@project.status}"
.project_content .project_content
.container .container
%div.project_partials %div.project_partials
...@@ -22,3 +21,7 @@ ...@@ -22,3 +21,7 @@
%ul %ul
%li %li
= render "#{project_partial.title}" = render "#{project_partial.title}"
:javascript
new BeerSlider( document.getElementById( "slider" ) );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment