Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hi i have a problem with vegas slideshow installation:
http://vegas.jaysalvat.com/documentation/setup/

-I downloaded vegas from http://vegas.jaysalvat.com/ (on github there are others files);
-I put all files in folder's root: vegas.min.css, vegas.min.js, index.js, bridge.jpg (example picture)
-I created an index.html

The result is a blank page.
Where are the problems?

Thanks

What I have tried:

-index.html:

HTML
<!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
      <script type="text/javascript" src="http://code.jquery.com/jquery.min.js">
      <link rel="stylesheet" href="vegas.min.css">
      <script src="vegas.min.js"></script>
      <script type="text/javascript" src="index.js"></script>
</script>
    </head>
    <body>
        <div style="height: 100vh">
        <div id="ShowSlideShowHere" style="height: 100vh"></div>
        </div>
    </body>
    </html>


-index.js:

JavaScript
$("#ShowSlideShowHere, body").vegas({
    slides: [
        { src: "bridge.jpg" },
        { src: "/img/slide2.jpg" },
        { src: "/img/slide3.jpg" },
        { src: "/img/slide4.jpg" }
    ]
});
Posted
Comments
F-ES Sitecore 8-Feb-17 11:44am    
Did you read any of the diagnostic suggestions in your other, now deleted, question?
[no name] 8-Feb-17 11:54am    
"Where are the problems?", the first problem is that you aren't listening. What did the author of the code say when you asked him about your problem?
Member 12989102 8-Feb-17 11:57am    
i don't understand! what do you mean?
Karthik_Mahalingam 8-Feb-17 23:09pm    
Always use  Reply  button, to post Comments/query to the user, so that the user gets notified and responds to your text.
Richard Deeming 8-Feb-17 13:25pm    
The obvious problem is that you've copied the code from the setup page without understanding it.
$("#ShowSlideShowHere, body").vegas({...

You're trying to apply the plugin to both the <div> AND the <body>. That's probably not going to work. Change it to:
$("#ShowSlideShowHere").vegas({...

If it still doesn't work, then you're going to have to ask the plugin author for support by submitting an issue on the GitHub repository:
https://github.com/jaysalvat/vegas/issues[^]

1 solution

Don't worry, I solved:
I change
$("#ShowSlideShowHere, body").vegas({
    slides: [
        { src: "bridge.jpg" },
        { src: "/img/slide2.jpg" },
        { src: "/img/slide3.jpg" },
        { src: "/img/slide4.jpg" }
    ]
});

With

$(function(){
$("#ShowSlideShowHere, body").vegas({
    slides: [
        { src: "bridge.jpg" },
        { src: "/img/slide2.jpg" },
        { src: "/img/slide3.jpg" },
        { src: "/img/slide4.jpg" }
    ]
});
});
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900