Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with images showing up on the wall #12

Open
dovydaz opened this issue Aug 12, 2013 · 8 comments
Open

Problem with images showing up on the wall #12

dovydaz opened this issue Aug 12, 2013 · 8 comments

Comments

@dovydaz
Copy link

dovydaz commented Aug 12, 2013

Hi I cant seem to manage to get the wall to display any photos, i tried creating the wall just on an empty page just to test it.

Any help would be very much appreciated! Thanks in advanced.

HTML:

<!doctype html>

<title>Untitled Document</title> <script src="js/jquery-ui-1.8.18.custom.min.js"></script> <script src="mootools-more-1.3.2.1.js"></script> <script src="wall.js"></script>
<div id="viewport">
    <div id="wall"></div>
</div>
<!-- END Viewport and Wall -->

CSS:

@charset "utf-8";
/* CSS Document */

html {
width:100%;
height:100%;
background:url(logo.png) center center no-repeat;
}

/* Minimal Css Required */
#viewport{
width:900px;
height:450px;
position:relative;
overflow:hidden;
margin:0 auto;
background:#111111 ;
}

#wall{
    z-index:1;
}

// Define The Wall
var maxLength = 100; // Max Number images
var counterFluid = 1;
var wallFluid = new Wall("wall", {
"draggable":true,
"inertia":true,
"width":200,
"height":200,
"rangex":[-100,100],
"rangey":[-100,100],
callOnUpdate: function(items){
items.each(function(e, i){
var a = new Element("img[src=/images/"+counterFluid+".jpg]");
a.inject(e.node).fade("hide").fade("in");
counterFluid++;
// Reset counter
if( counterFluid > maxLength ) counterFluid = 1;
})
}
});
// Init Fluid Wall
wallFluid.initWall();

screen shot 2013-08-12 at 18 35 18

@lorenzos
Copy link

The Wall is a Mootools plugin, not a jQuery one.

I see in your screenshot that you are including jQuery UI, Mootools More and The Wall. But both The Wall and Mootools More require Mootools Core!

@dovydaz
Copy link
Author

dovydaz commented Aug 13, 2013

Hi, so do i just need to remove jQuery and add Mootools Core?
Uploading Screen Shot 2013-08-13 at 12.38.03.png . . .

@dovydaz
Copy link
Author

dovydaz commented Aug 13, 2013

screen shot 2013-08-13 at 12 38 03

@lorenzos
Copy link

Yes. But try using same Mootools version for Core and More (up to the second digit): latest is 1.4.5 for Core and 1.4.0.1 for More.

@dovydaz
Copy link
Author

dovydaz commented Aug 13, 2013

Ok changed More to a 1.4.0.1 version but yet it still doesnt work, the pictures still are not visible.
screen shot 2013-08-13 at 15 20 34

@lorenzos
Copy link

I cannot help you if I can't see your code.
Where is your JS where you Define The Wall using the new Wall() constructor?

@dovydaz
Copy link
Author

dovydaz commented Aug 14, 2013

Ok sure here you go

HTML:

<!doctype html>

<title>Untitled Document</title> <script src="mootools-core-1.4.5.js"></script> <script src="mootools-more-1.4.0.1.js"></script> <script src="wall.js"></script> <script> // Define The Wall var maxLength = 100; // Max Number images var counterFluid = 1; var wallFluid = new Wall("wall", { "draggable":true, "inertia":true, "width":200, "height":200, "rangex":[-100,100], "rangey":[-100,100], callOnUpdate: function(items){ items.each(function(e, i){ var a = new Element("img[src=images"+counterFluid+".jpg]"); a.inject(e.node).fade("hide").fade("in"); counterFluid++; // Reset counter if( counterFluid > maxLength ) counterFluid = 1; }) } }); // Init Fluid Wall wallFluid.initWall(); </script>
<div id="viewport">
    <div id="wall"></div>
</div>
<!-- END Viewport and Wall -->

CSS:

@charset "utf-8";
/* CSS Document */

html {
width:100%;
height:100%;
background:url(logo.png) center center no-repeat;
}

/* Minimal Css Required */
#viewport{
width:900px;
height:450px;
position:relative;
overflow:hidden;
margin:0 auto;
background:#111111 ;
}

#wall{
    z-index:1;
}

@lorenzos
Copy link

You are missing the code to create The Wall! There's no JS at all! Anyway this is not the place to get support, so try to figure out yourself from this point. It's all explained on The Wall website. Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants