Compare commits
7 Commits
863e2069b5
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ccd0279ab | |||
| 3b23d358a0 | |||
| 187ea6c970 | |||
| 2799d2bb86 | |||
| ca72365f6d | |||
| c7cc14effc | |||
| e165581dc7 |
@@ -3,4 +3,5 @@
|
|||||||
class Settings
|
class Settings
|
||||||
{
|
{
|
||||||
const DEBUG = false;
|
const DEBUG = false;
|
||||||
|
const TIMEZONE = 'Europe/Paris';
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<h2><i class="fa inline fa-feedback"></i>Filtered films</h2>
|
<h2><i class="fa inline fa-feedback"></i>Filtered films</h2>
|
||||||
<div id="feed_content"></div>
|
<div id="feed_content"></div>
|
||||||
</div>
|
</div>
|
||||||
<footer><i class="fa inline fa-power"></i>Designed & powered by Franzz, licensed under GPLv3.</footer>
|
<footer><i class="fa inline fa-power"></i>Designed & powered by Franzz, <a href="https://git.lutran.fr/franzz/ugc" title="Git Repository" target="_blank">licensed under GPLv3</a>.</footer>
|
||||||
<div class="background"></div>
|
<div class="background"></div>
|
||||||
<div id="settings">
|
<div id="settings">
|
||||||
<h1>Theaters<span id="ok_settings" class="button no_bg square fa fa-ok"></span></h1>
|
<h1>Theaters<span id="ok_settings" class="button no_bg square fa fa-ok"></span></h1>
|
||||||
|
|||||||
8
script/jquery.js
vendored
8
script/jquery.js
vendored
File diff suppressed because one or more lines are too long
@@ -427,7 +427,7 @@ function Ugc()
|
|||||||
oFilm.trailer('');
|
oFilm.trailer('');
|
||||||
|
|
||||||
//Director
|
//Director
|
||||||
oFilm.director($.trim($Film.find('.movie-realisator').text().substring(4))); //omg
|
oFilm.director($.trim($Film.find('.movie-realisator').text().trim().substring(3))); //omg
|
||||||
|
|
||||||
//Minimum info acquired: book place on DOM
|
//Minimum info acquired: book place on DOM
|
||||||
oFilm.anchor();
|
oFilm.anchor();
|
||||||
@@ -522,7 +522,8 @@ function Settings()
|
|||||||
|
|
||||||
//Default cinemas
|
//Default cinemas
|
||||||
var asCookieCinemas = Cookies.getJSON('cinemas');
|
var asCookieCinemas = Cookies.getJSON('cinemas');
|
||||||
this.cinemas(asCookieCinemas?asCookieCinemas:{'10':'Les Halles', '12':'Bercy', '20':'La Défense'});
|
asCookieCinemas = $.isEmptyObject(asCookieCinemas)?{'10':'Les Halles', '12':'Bercy', '20':'La Défense'}:asCookieCinemas;
|
||||||
|
this.cinemas(asCookieCinemas);
|
||||||
|
|
||||||
//UGC cinemas
|
//UGC cinemas
|
||||||
getUgcPage( 'resaExpressAction!getCinemaList.action',
|
getUgcPage( 'resaExpressAction!getCinemaList.action',
|
||||||
@@ -553,8 +554,8 @@ function Settings()
|
|||||||
else if($.isNumeric(asCinemas)) return this._ugcCinemas[asCinemas]; //Get Cinema name
|
else if($.isNumeric(asCinemas)) return this._ugcCinemas[asCinemas]; //Get Cinema name
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$.each(asCinemas, function(iCinemaId, sCinema){
|
$.each(asCinemas, function(iKey, sCinema){
|
||||||
self._ugcCinemas[iCinemaId] = $.trim(sCinema.replace(/UGC( Ciné Cité|)/i, ''));
|
self._ugcCinemas[sCinema.cinemaId] = $.trim(sCinema.cinemaName.replace(/UGC( Ciné Cité|)/i, ''));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -640,11 +641,11 @@ function Settings()
|
|||||||
|
|
||||||
//event
|
//event
|
||||||
$Select.change(function(){
|
$Select.change(function(){
|
||||||
Cookies.set('date', $(this).val(), {expires:6});
|
Cookies.set('date', $(this).val(), {expires:6, sameSite: 'lax'});
|
||||||
reload();
|
reload();
|
||||||
});
|
});
|
||||||
$List.find('.day').click(function(){
|
$List.find('.day').click(function(){
|
||||||
Cookies.set('date', $(this).data('timestamp'), {expires:6});
|
Cookies.set('date', $(this).data('timestamp'), {expires:6, sameSite: 'lax'});
|
||||||
reload();
|
reload();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -678,8 +679,8 @@ function Settings()
|
|||||||
var $Cine = $(oCinema);
|
var $Cine = $(oCinema);
|
||||||
asCines[$Cine.data('id')] = $Cine.text();
|
asCines[$Cine.data('id')] = $Cine.text();
|
||||||
});
|
});
|
||||||
Cookies.set('cinemas', asCines);
|
Cookies.set('cinemas', asCines, {sameSite: 'lax'});
|
||||||
Cookies.set('premiere', self.premiere()?'true':'false');
|
Cookies.set('premiere', self.premiere()?'true':'false', {sameSite: 'lax'});
|
||||||
reload();
|
reload();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
sass --unix-newline -l --style=compressed --watch ugc.scss:ugc.css
|
sass --style=compressed --watch ugc.scss:ugc.css
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -358,6 +358,14 @@ footer {
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
margin: 1em 0 0 0;
|
margin: 1em 0 0 0;
|
||||||
color: $ugc_color;
|
color: $ugc_color;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $ugc_color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $comp_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Section - Settings */
|
/* Section - Settings */
|
||||||
|
|||||||
Reference in New Issue
Block a user