Hello,
I tried to add a custom button into my projects,
the problem is that in these projects I already added the
Magnetic Slider. So I think it is problematic because of
the Magenetic Slider full screen behavior.
I tried to solve it with some java script, but since I am
not familiar with java script I couldn´t get it work.
The Script I wrote in the Head was:
<script>
Frontend.module("GlobalEvents").on("newpage", function(layoutObj, type, obj){
if(type == "project" && obj.id == 68){
var a = document.createElement('a');
a.className += 'link';
var linkText = document.createTextNode("Info");
a.appendChild(linkText);
a.title = "Info";
a.href = "http://myadress.de";
document.getElementById("main-region").appendChild(a);
}
});
</script>
I thought it would work out and don`t exactly know what I did wrong.
Maybe its the false area I appended the Element.
Would be very nice to get help.
Thanks a lot