File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
<div class =" vs-core" >
9
9
<div class =" vs-slogan" >
10
10
<div class =" vs-slogan-up" >
11
- Get up to <strong >40% off </strong > your Vue School Subscription
11
+ Extended for <strong >48 hours! </strong >
12
12
</div >
13
13
<div class =" vs-slogan-down" >
14
- Time Limited Offer
14
+ Get up to 40% off your Vue School Subscription
15
15
</div >
16
16
</div >
17
17
<div class =" vs-button" >
Original file line number Diff line number Diff line change 285
285
* Banner closing
286
286
*/
287
287
function initVueSchoolBanner ( ) {
288
+ const now = new Date ( )
289
+ const end = new Date ( '2022-05-04T00:00:00+02:00' )
288
290
const banner = document . getElementById ( 'vs' )
289
- if ( banner && ! localStorage . getItem ( 'VS_FW_BANNER_CLOSED_2' ) ) {
291
+ if ( banner && ( now < end ) && ! localStorage . getItem ( 'VS_FW_BANNER_CLOSED_2' ) ) {
290
292
banner . classList . remove ( 'vs-hidden' )
291
293
document . body . classList . add ( 'has-vs-banner' )
292
294
document . getElementById ( 'vs-close' ) . addEventListener ( 'click' , function ( e ) {
You can’t perform that action at this time.
0 commit comments