-
Notifications
You must be signed in to change notification settings - Fork 3
/
stereo_footer.tpl
24 lines (24 loc) · 982 Bytes
/
stereo_footer.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<p>
{$STEREO_FORMAT}
<label for="gif_radio">{$STEREO_FORMAT_GIF}
<input type="radio" value="gif" name="stereo_format" id="gif_radio" {$GIF_SELECTED} />
</label>
<label for="cross_radio">{$STEREO_FORMAT_CROSS_EYED}
<input type="radio" value="cross" name="stereo_format" id="cross_radio" {$CROSS_SELECTED} />
</label>
<label for="wall_radio">{$STEREO_FORMAT_WALL_EYED}
<input type="radio" value="wall" name="stereo_format" id="wall_radio" {$WALL_SELECTED} />
</label>
</p>
<script type="text/javascript" src="{$REL_DIR}/js.cookie.js"></script>
<script type="text/javascript">
var i, inputs = document.getElementsByName('stereo_format');
for( i = 0; i < inputs.length; i++ ) {
inputs[i].addEventListener( 'change', function( e ) {
if ( this.checked ) {
Cookies.set( 'piwigo_stereo_mode', this.value );
document.location.reload();
}
} );
}
</script>