Ero sivun ”Widget:Fullscreen” versioiden välillä
Järvi-meriwikistä
Rivi 19: | Rivi 19: | ||
function <!--{$id|default:Fullscreen|escape:'html'}-->_func() { | function <!--{$id|default:Fullscreen|escape:'html'}-->_func() { | ||
− | var output = '<div class="fullscreen-button" style="margin-left: 10px; float: right; border-radius: 50%;"><button title="fullscreen" style="width: 24px; height: 24px; padding: 0; margin: 0; color: #1B599B; background: none; border: none;"><i class="fas fa-expand"></i></button></div>'; | + | var output = '<div class="fullscreen-button" style="margin-left: 10px; float: right; border-radius: 50%;"><button id="<!--{$id|default:Fullscreen|escape:'html'}-->_button" title="fullscreen" style="width: 24px; height: 24px; padding: 0; margin: 0; color: #1B599B; background: none; border: none;"><i class="fas fa-expand"></i></button></div>'; |
jQuery( "#<!--{$id|default:Fullscreen|escape:'html'}-->_container" ).html( output ); | jQuery( "#<!--{$id|default:Fullscreen|escape:'html'}-->_container" ).html( output ); | ||
Rivi 25: | Rivi 25: | ||
} | } | ||
− | jQuery( "#<!--{$id|default:Fullscreen|escape:'html'}--> | + | jQuery( "#<!--{$id|default:Fullscreen|escape:'html'}-->_button" ).on( 'click', function() { |
console.log( 'asdfsad' ); | console.log( 'asdfsad' ); |