Thanks for the quick response :-) Both methods don't work unfortunately ...hmmm
Just to be sure because i'm probably the worst JS Coder on earth:
I've made the HTML stuff with canvas ( inclusive the modal ):
The Modal works fine when opening as usual:
a href="#myModal1" data-lightbox="inline" class="button button-large button-rounded">Modal</a>
<!-- Modal -->
<div class="myModal1 mfp-hide" id="myModal1">
<div class="block divcenter" style="background-color: #FFF; max-width: 500px;">
<div class="center" style="padding: 50px;">
... my modal stuff
</div>
<div class="section center nomargin" style="padding: 30px;">
<a href="#" class="button" onClick="$.magnificPopup.close();return false;">close</a>
</div>
</div>
</div>
Trying to open it via Script ( within my HTML Code NOT from my WebGL App! ) - Bootstrap Style: darkened screen but no modal, JS method throws a Script Error
<button onclick="goModalBoot()">Boot Style</button>
<button onclick="goModalJS()">JS Style</button>
<script>
function goModalBoot(){
$('#myModal1').modal('show');
}
function goModalJS(){
$('.myModal1').magnificPopup('open');
}
</script>