mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-03 19:47:25 +01:00
9 lines
322 B
JavaScript
9 lines
322 B
JavaScript
|
onready(function(){
|
||
|
var uri = window.location.pathname.substr(1);
|
||
|
var flagStorage = uri.slice(0, -1)+'_flag';
|
||
|
var item = window.localStorage.getItem(flagStorage);
|
||
|
$('select[name=user_flag]').val(item);
|
||
|
$('select[name=user_flag]').change(function() {
|
||
|
window.localStorage.setItem(flagStorage, $(this).val());
|
||
|
});
|
||
|
});
|