Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 32: | Rivi 32: | ||
for (var a in memo.chartEl[0].attributes ) { | for (var a in memo.chartEl[0].attributes ) { | ||
− | + | if ( typeof memo.chartEl[0].attributes[a].name != 'undefined' ) { | |
+ | if ( memo.chartEl[0].attributes[a].name.indexOf( 'data-' ) == 0 ) { | ||
+ | //memo.attributes[ memo.chartEl[0].attributes[a].name ] = attrA[a].value; | ||
+ | } | ||
+ | } | ||
} | } | ||
+ | |||
+ | // add fullscreen button | ||
+ | memo.chartEl.append( '<div class="obschartbutton fullscreen-button" style="display: none; position: absolute; z-index: 120; float: right; top: 40px; right: 1.5px; background-color: rgba( 255, 255, 255, .9 ); border-radius: 50%; border: 1px solid rgba( 230, 230, 230, 0.75 ); width: 24px; height: 24px; padding: 0;"><button title="' + i18n['fullscreen'][memo.lang] + '" style="width: 24px; height: 24px; padding: 0; margin: 0; background: none; border: none; background-image: url( //www.jarviwiki.fi/widgets/img/fullscreen_16px.png ); background-size: 50%; background-position: center; background-repeat: no-repeat; "></button></div>' ); | ||
+ | memo.fullscreenEl = jQuery( this ).find( '.fullscreen-button' ); | ||
memo.jw = new jwApi(); | memo.jw = new jwApi(); |