galleria

How to use Galleria plugin with Rails 4 Pipeline

我怕爱的太早我们不能终老 提交于 2020-01-01 03:21:53
问题 I've recently had a trouble making Galleria plugin work with Rails 4 Pipeline and it took me a while to figure out how to make it work, so I wanted to share the solution in case somebody has the similar problem. 1) After downloading the plugin, put galleria-1.3.3.js ( it's the current version on the day I write it ) and galleria.classic.js ( or other style js file ) to vendor/assets/javascripts 2) Put galleria.classic.css ( or other theme stylesheet) to vendor/assets/stylesheets 3)Add //=

Is there any option to Display the galleria gallery inside the fancybox?

て烟熏妆下的殇ゞ 提交于 2019-12-25 06:07:10
问题 I am using the fancybox.I want to display the image gallery using the galleria plugin inside the fancy box similar to this jQuery(".pika-stage img").live('click',function(){ var product_id = <?php echo $Product->id;?>; jQuery.ajax({ url: "<?php echo $currenturl;?>", type: "POST", data:{tasksubmit:"enlarge",productid:product_id}, success: function(data){ var gal_img ='<div id= gallery>'+data+'</div>'; jQuery.fancybox({ 'content': gal_img }); } }) }); 回答1: Finally i got the solution for

Galleria not loading on initial page visit

我只是一个虾纸丫 提交于 2019-12-25 01:07:38
问题 I'm using the Galleria plug-in for a website I'm setting up, and it was working flawlessly until I tested it on someone else's computer. On a visitors initial visit to the site, the slideshow will not load at all, but after reloading the page it will appear. I never had a problem with it while I was building the site, but when I cleared my cache and data and visited the site, I ran into the same problem. So whats going on here? Is there a simple fix? Is there a way to just force a page reload

resize script for galleria

∥☆過路亽.° 提交于 2019-12-19 10:15:08
问题 I'm wanting to resize the entire galleria div and resize all the images dynamically generated using the galleria script. so far I have $(window).resize(function() { var h = $(window).height(); var galleriaHeight = h-54; var w = $(".content").width(); var galleriaWidth = w-18; $("#galleria").height(galleriaHeight); $("#galleria").width(w); $(".galleria-stage").height(galleriaHeight); $(".galleria-stage").width(galleriaWidth); $(".galleria-images .galleria-image img").css({"max-height":"auto"})

Galleria not showing up on Heroku in Rails app

无人久伴 提交于 2019-12-12 05:56:14
问题 For my Rails app I'm using Galleria - http://galleria.io/ It all works fine locally, but when I deploy the app to heroku, galleria is gone. Not really sure why.. Here's my code : <div id="galleria"> <% for image in @trip.images %> <%= link_to image_tag(image.image.url(:thumb)), image.image.url(:large), :title => image.title %> <% end %> </div> <script> Galleria.run('#galleria'); Galleria.configure({ minScaleRatio: 1, maxScaleRatio: 1, }); </script> </div> application.js //= require jquery //=

display galleria list of images in random order

强颜欢笑 提交于 2019-12-12 04:21:37
问题 I was wondering if it's possible to randomise the list of images galleria uses to be different each time on document.load Any ideas? 回答1: The easiest way to handle this would be to do it on the server with the scripting language of your choice. If you want to do something like this on the client side, you could look at this plugin here, which allows you to randomize an array of jQuery objects. Should be as easy as: $('.images').shuffle().galleria(); 回答2: Put the images in an array, sort the

p:galleria doesn't show after sign up, but directly yes

て烟熏妆下的殇ゞ 提交于 2019-12-12 00:57:08
问题 I am trying to display some picture in a primefaces galleria after signing in, in a new xhtml, but nothing happens. This is the "sing in" page (index.xhtml, "Bejelentkezés" means "Sign in" in hungarian): When I fill the texts with "viktor" (username and passw too), it navigates to "home.xhtml", which would show the galleria upside, the pictures' name in the middle, and one picture under. But I got this: If I write "localhost:8080/Primefaces_test1/home.xhtml" into the browser, ENTER, see a

Galleria works locally in all browsers but only IE8 & Chrome when hosted

一笑奈何 提交于 2019-12-11 16:01:45
问题 This page: http://www.ipjnet.talktalk.net/code/photos.html works in Opera11,Chrome, Firefox3 & IE8 locally. The same page hosted only loads correctly in IE8 & Chrome I'm new to galleria and jquery so please be gentle with me as I think I must be missing something very obvious. Thank You very much 回答1: The slashes in your script files are the wrong ones... <script src="galleria\src\jquery-1.4.4.js"></script> <script src="galleria\src\galleria.js"></script> should be: <script src="galleria/src

Primefaces <p:graphicImage /> is throwing undefined function

谁说我不能喝 提交于 2019-12-11 15:03:02
问题 <p:galleria id="gal" value="#{homeBean.images}" var="image" panelWidth="600" panelHeight="300" > <p:graphicImage value="#{image.imagePath}" width="600" height="300" /> </p:galleria> Problem: Uncaught TypeError: undefined is not a function galleria.js?ln=primefaces&v=4.0:1 And no preview, nothing - like it doesn't exist. But in the source code it does exist. The generated source code is : <div id="gal" class="ui-galleria ui-widget ui-widget-content ui-corner-all"> <ul class="ui-galleria-panel

jQuery Galleria 'fatal error: no theme found.' in IE

限于喜欢 提交于 2019-12-08 06:11:25
问题 Galleria v 1.2 works fine in FF, SF and Chrome, but it raises this message in all IEs "fatal error: no theme found." Anybody seen it before? 回答1: I have, and a solution that works is to place a link to that theme in the page, i.e.: <script src="path/to/your/theme.js"></script> But it will sometimes still throw this error for no apparent reason. 回答2: Just a note. A lot of the times you get the error message without there being any errors. I find that hiding the error with some CSS to be