Commit 6397141a by Mykhailo Makohin

add tooltip for project

parent cc885d9e
...@@ -34,6 +34,7 @@ gem 'globalize-accessors' ...@@ -34,6 +34,7 @@ gem 'globalize-accessors'
gem 'ckeditor', '~> 4.3' gem 'ckeditor', '~> 4.3'
gem 'mini_magick' gem 'mini_magick'
gem 'video_info', '~> 2.7' gem 'video_info', '~> 2.7'
gem 'tooltipster-rails'
group :development, :test do group :development, :test do
gem 'byebug', platform: :mri gem 'byebug', platform: :mri
......
...@@ -290,6 +290,7 @@ GEM ...@@ -290,6 +290,7 @@ GEM
thor (0.20.3) thor (0.20.3)
thread_safe (0.3.6) thread_safe (0.3.6)
tilt (2.0.9) tilt (2.0.9)
tooltipster-rails (4.2.6)
turbolinks (5.2.0) turbolinks (5.2.0)
turbolinks-source (~> 5.2) turbolinks-source (~> 5.2)
turbolinks-source (5.2.0) turbolinks-source (5.2.0)
...@@ -347,6 +348,7 @@ DEPENDENCIES ...@@ -347,6 +348,7 @@ DEPENDENCIES
simple_form simple_form
spring spring
spring-watcher-listen (~> 2.0.0) spring-watcher-listen (~> 2.0.0)
tooltipster-rails
turbolinks (~> 5) turbolinks (~> 5)
tzinfo-data tzinfo-data
uglifier (>= 1.3.0) uglifier (>= 1.3.0)
......
app/assets/images/grid_item_first.png

16.6 KB | W: | H:

app/assets/images/grid_item_first.png

18.3 KB | W: | H:

app/assets/images/grid_item_first.png
app/assets/images/grid_item_first.png
app/assets/images/grid_item_first.png
app/assets/images/grid_item_first.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
// //
//= require jquery //= require jquery
//= require jquery-ui //= require jquery-ui
//= require jBox.all
//= 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
......
...@@ -22,7 +22,7 @@ jQuery(document).ready(function($){ ...@@ -22,7 +22,7 @@ jQuery(document).ready(function($){
// initTip(); // initTip();
// initMap(); // initMap();
topTip(); topTip();
initTooltipster(); // initTooltipster();
playStopVideoInModal(); playStopVideoInModal();
// initTwentytwenty(); // initTwentytwenty();
scrollToTop(); scrollToTop();
...@@ -46,7 +46,6 @@ function scrollToTop() { ...@@ -46,7 +46,6 @@ function scrollToTop() {
}); });
} }
function initTwentytwenty() { function initTwentytwenty() {
$(window).on("load", function(){ $(window).on("load", function(){
$(".twentytwenty-container[data-orientation!='vertical']").twentytwenty({default_offset_pct: 0.7}); $(".twentytwenty-container[data-orientation!='vertical']").twentytwenty({default_offset_pct: 0.7});
...@@ -187,7 +186,7 @@ function mobilePartners() { ...@@ -187,7 +186,7 @@ function mobilePartners() {
$(window).resize(function() { $(window).resize(function() {
mobilePartners(); mobilePartners();
// initTooltipster(); // initTooltipster();
initDraggable(); //initDraggable();
}); });
/** /**
......
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
@import url("normalize.css"); @import url("normalize.css");
@import url("outdatedBrowser.min.css"); @import url("outdatedBrowser.min.css");
@import url("main.css"); @import url("main.css");
@import url("BeerSlider.css") @import url("BeerSlider.css")
\ No newline at end of file
class HomeController < ApplicationController class HomeController < ApplicationController
def index def index
@video = VideoInfo.new("http://www.youtube.com/watch?v=mZqGqE0D0n4")
@projects = Project.all @projects = Project.all
end end
end end
\ No newline at end of file
...@@ -63,20 +63,37 @@ ...@@ -63,20 +63,37 @@
.title_highlighted .title_highlighted
Рейтинг топ-100 найпрогресивніших компаній міста Рейтинг топ-100 найпрогресивніших компаній міста
.grid.clearfix .grid.clearfix
.grid_item.first
= link_to image_tag('grid_item_first.png'), "#", class: 'grid_item_content'
- @projects.each do |project| - @projects.each do |project|
.grid_item.first
= link_to image_tag('grid_item_first.png'), "#", class: 'grid_item_content'
/ %a.grid_item_content{:href => "#", :style => "background-image: url(grid_item_first.png)"}
.grid_item .grid_item
= link_to image_tag(project.photo.url(:thumb)), project_path(project), class: 'grid_item_content tooltipstered' #Tooltip-2
.grid_item.last = link_to image_tag(project.photo.url(:thumb)), project_path(project), class: "grid_item_content tooltipstered"
%span.grid_item_content.tooltipstered .tooltip_templates
%a.get_involved_link.centered{"data-original-title" => "приєднатись", "data-placement" => "top", "data-toggle" => "tooltip", :href => "#"} #toolTip
%span.get_involved_circle .tooltipster_top
%img.icon_plus{:alt => "", :src => "img/plus.svg"}/ .tooltipster_title
#{project.status}
.tooltipster_title_name #{project.title}
%a.tooltipster_img{"data-target" => "#video", "data-toggle" => "modal", :href => "//www.youtube.com/embed/uX12dn47Dy0?rel=0&autoplay=1&showinfo=0html5=1"}
= image_tag("#{VideoInfo.new("www.youtube.com/embed/uX12dn47Dy0?rel=0&autoplay=1&showinfo=0html5=1").thumbnail_small}")
.tooltipster_bot
%a.tooltipster_link{:href => "#"} #{project.site}
.grid_item.last
%span.grid_item_content.tooltipstered
%a.get_involved_link.centered{"data-original-title" => "приєднатись", "data-placement" => "top", "data-toggle" => "tooltip", :href => "#"}
%span.get_involved_circle
%img.icon_plus{:alt => "", :src => "img/plus.svg"}/
.progress .progress
.progress-bar{"aria-valuemax" => "100", "aria-valuemin" => "0", "aria-valuenow" => "58", :role => "progressbar", :style => "width: 58%"} .progress-bar{"aria-valuemax" => "100", "aria-valuemin" => "0", "aria-valuenow" => "58", :role => "progressbar", :style => "width: 58%"}
.progress_value_lg 58 / 100 .progress_value_lg 58 / 100
#video.modal.fade.modal_styled.modal_video.modal_centered{"aria-labelledby" => "modalLabel", :role => "dialog", :tabindex => "-1"}
.modal-dialog{:role => "document"}
.modal-content
%button.close{"aria-label" => "Close", "data-dismiss" => "modal", :type => "button"}
%i.icon.icon_close2
.embed-responsive.embed-responsive-16by9
%iframe{:allowfullscreen => "", :frameborder => "0", :height => "315", :src => "", :width => "560"}
.main_head_bot .main_head_bot
.head_soc .head_soc
%a.round_link.soc_link_yt{:href => "#"} %a.round_link.soc_link_yt{:href => "#"}
...@@ -475,32 +492,8 @@ ...@@ -475,32 +492,8 @@
.map_text .map_text
= t ('map_text') = t ('map_text')
#map.map #map.map
.tooltip_templates
#tooltip_content_inner
.tooltipster_top
.tooltipster_title
Технічний партнер
.tooltipster_title_name Cosmo-Trecel
%a.tooltipster_img{"data-target" => "#video", "data-toggle" => "modal", :href => "//www.youtube.com/embed/uX12dn47Dy0?rel=0&autoplay=1&showinfo=0html5=1"}
%img{:alt => "", :src => "img/tip_img1.png"}/
.tooltipster_bot
%a.tooltipster_link{:href => "#"} cosmo-travel.com.ua
%a.round_link{:href => "#"}
%i.icon.icon_fb
%a.btn.btn_default.btn_round.btn_bordered{"data-original-title" => "долучитись", "data-placement" => "top", "data-toggle" => "tooltip", :href => "#"} %a.btn.btn_default.btn_round.btn_bordered{"data-original-title" => "долучитись", "data-placement" => "top", "data-toggle" => "tooltip", :href => "#"}
%i.icon.icon_plus %i.icon.icon_plus
.tooltip_templates
#tooltip_content_inner
.tooltipster_top
.tooltipster_title
Технічний партнер
.tooltipster_title_name Cosmo-Trecel
%a.tooltipster_img{"data-target" => "#video", "data-toggle" => "modal", :href => "//www.youtube.com/embed/uX12dn47Dy0?rel=0&autoplay=1&showinfo=0html5=1"}
= image_tag('tip_img1.png')
.tooltipster_bot
%a.tooltipster_link{:href => "#"} cosmo-travel.com.ua
%a.round_link{:href => "#"}
%i.icon.icon_fb
%a#scroller.scroller{:href => "#"} %a#scroller.scroller{:href => "#"}
%i.icon.icon_arrow_up %i.icon.icon_arrow_up
%div на початок %div на початок
......
...@@ -196,4 +196,4 @@ ...@@ -196,4 +196,4 @@
%span.news_text %span.news_text
Досліджень, розробки законопроектів, підготовки кадрів та інших цілей на умовах, передбачених грантодавцем. Досліджень, розробки законопроектів, підготовки кадрів та інших цілей на умовах, передбачених грантодавцем.
:javascript :javascript
new BeerSlider( document.getElementById( "slider" ) ); new BeerSlider( document.getElementById( "slider" ) );
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -12201,6 +12201,7 @@ h1 { ...@@ -12201,6 +12201,7 @@ h1 {
padding-right: 100px; padding-right: 100px;
padding: 15px 117px 17px 30px; padding: 15px 117px 17px 30px;
position: relative; position: relative;
background: #EE6563;
} }
.tooltipster_img { .tooltipster_img {
position: absolute; position: absolute;
......
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