Skip to content

Commit

Permalink
Add "whats new" update notification
Browse files Browse the repository at this point in the history
  • Loading branch information
thdoan committed Aug 20, 2020
1 parent 09d7e53 commit 398c6c0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Corrections and comments are welcome by [sending an email](mailto:feedback@vietb
- Added responsive design for mobile devices
- Improved bonuses layout (more evenly spread out)
- Added option to change bonuses layout
- Added "what's new" update notification

## Dependencies for local build

Expand Down
3 changes: 2 additions & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fart %temp%\vietboard\src\*.js "console.log" " //console.log"
REM Build (minify and concatenate)
AjaxMin.exe -clobber css\style.css -out %target%\css\styles.min.css
AjaxMin.exe -inline:no -clobber -term lang\vi_wordlist.js lang\vi_defs.js lang\vi_letters.js -out %target%\js\lang.min.js
AjaxMin.exe -inline:no -clobber -term %temp%\vietboard\src\redipsdrag.js %temp%\vietboard\src\bonuses.js %temp%\vietboard\src\ui.js %temp%\vietboard\src\engine.js %temp%\vietboard\src\events.js -out %target%\js\app.min.js
AjaxMin.exe -inline:no -clobber -term %temp%\vietboard\src\redipsdrag.js %temp%\vietboard\src\bonuses.js %temp%\vietboard\src\ui.js %temp%\vietboard\src\engine.js %temp%\vietboard\src\events.js %temp%\vietboard\src\changelog.js -out %target%\js\app.min.js
REM Deploy
copy /y index.html %target%
xcopy /y lang\en_translate.js %target%\lang\
Expand All @@ -30,6 +30,7 @@ fart --c-style --remove %target%\index.html "<script src=\"src/bonuses.js\"></sc
fart --c-style --remove %target%\index.html "<script src=\"src/ui.js\"></script>\n"
fart --c-style --remove %target%\index.html "<script src=\"src/engine.js\"></script>\n"
fart --c-style --remove %target%\index.html "<script src=\"src/events.js\"></script>\n"
fart --c-style --remove %target%\index.html "<script src=\"src/changelog.js\"></script>\n"
REM Clean up
rmdir /s /q %temp%\vietboard
REM End local scope
Expand Down
3 changes: 3 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,9 @@ a.down img {
#modal-container.center #modal-content {
text-align: center;
}
#modal-content h3 {
margin: 0;
}

#letters .obutton {
width: 32px;
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,6 @@
<script src="src/ui.js"></script>
<script src="src/engine.js"></script>
<script src="src/events.js"></script>
<script src="src/changelog.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions src/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ function init(iddiv) {
if (!g_wstr_arr[i]) continue;
g_wstr.push('_' + g_wstr_arr[i].join('_') + '_');
}

document.dispatchEvent(new Event('appReady'));
}

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 398c6c0

Please sign in to comment.