Add my own jquery code
-
Hi, i have made a pen with jquery code : https://codepen.io/nicolastilly/pen/MEvZPL
and i want to use it in my site with Lay theme.I write this in the "Custom CSS & HTML" but it doesn't work:
<script>
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
if(type == "page" && obj.id == 68){jQuery(window).scroll(function() { newNumber=$(window).scrollTop(); newNumber=newNumber*myRatio; jQuery('#carre').css('transform', "rotateZ("+newNumber+"deg)"); }); myRatio= getRatio(20, 337); function getRatio(max, max2) { return max/max2; }});
</script>
I don't understand very well how can i use jquery code in Lay...
Thanks. -
Hi @Nicolas
can you post a link to your website?Then I can have a look what does not work.
Best!
Marius
-
-
Hi @Nicolas
Best is if you write an email to marius@thepeople.world and include your username, password and a link to this conversation.
Marius
-
Hi @Nicolas
Best is if you write an email to marius@thepeople.world and include your username, password and a link to this conversation.
Marius
Hi @mariusjopen
I don't understand which username and password do you want in the email? -
-
Voila! :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login