PWA: modal platform

This commit is contained in:
cutls 2020-02-08 00:59:56 +09:00
parent ba01510c88
commit c24ef878c4

View File

@ -329,43 +329,68 @@ function storeDialog(platform, ver) {
var mes = lang.lang_version_platform_linux var mes = lang.lang_version_platform_linux
} else if (platform == 'darwin') { } else if (platform == 'darwin') {
var mes = lang.lang_version_platform_mac var mes = lang.lang_version_platform_mac
} else {
var mes = false
} }
Swal.fire({ if (mes) {
title: 'Select your platform', Swal.fire({
text: mes, title: 'Select your platform',
type: 'info', text: mes,
showCancelButton: true, type: 'info',
confirmButtonColor: '#3085d6', showCancelButton: true,
cancelButtonColor: '#3085d6', confirmButtonColor: '#3085d6',
confirmButtonText: lang.lang_no, cancelButtonColor: '#3085d6',
cancelButtonText: lang.lang_yesno confirmButtonText: lang.lang_no,
}).then(result => { cancelButtonText: lang.lang_yesno
//逆にしてる }).then(result => {
if (!result.value) { //逆にしてる
localStorage.setItem('winstore', 'winstore') if (!result.value) {
} else { localStorage.setItem('winstore', 'winstore')
localStorage.setItem('winstore', 'localinstall')
}
localStorage.setItem('ver', ver)
show = true
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
$(document).ready(function() {
$('#releasenote').modal('open')
verp = ver.replace('(', '')
verp = verp.replace('.', '-')
verp = verp.replace('.', '-')
verp = verp.replace('[', '-')
verp = verp.replace(']', '')
verp = verp.replace(')', '')
verp = verp.replace(' ', '_')
console.log('%c ' + verp, 'color: red;font-size:200%;')
if (lang.language == 'ja') {
$('#release-' + verp).show()
} else { } else {
$('#release-en').show() localStorage.setItem('winstore', 'localinstall')
} }
localStorage.setItem('ver', ver)
show = true
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
$(document).ready(function() {
$('#releasenote').modal('open')
verp = ver.replace('(', '')
verp = verp.replace('.', '-')
verp = verp.replace('.', '-')
verp = verp.replace('[', '-')
verp = verp.replace(']', '')
verp = verp.replace(')', '')
verp = verp.replace(' ', '_')
console.log('%c ' + verp, 'color: red;font-size:200%;')
if (lang.language == 'ja') {
$('#release-' + verp).show()
} else {
$('#release-en').show()
}
})
}) })
}) } else {
localStorage.setItem('ver', ver)
show = true
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
$(document).ready(function() {
$('#releasenote').modal('open')
verp = ver.replace('(', '')
verp = verp.replace('.', '-')
verp = verp.replace('.', '-')
verp = verp.replace('[', '-')
verp = verp.replace(']', '')
verp = verp.replace(')', '')
verp = verp.replace(' ', '_')
console.log('%c ' + verp, 'color: red;font-size:200%;')
if (lang.language == 'ja') {
$('#release-' + verp).show()
} else {
$('#release-en').show()
}
})
}
} }
function closeStart() { function closeStart() {
$('#start').css('display', 'none') $('#start').css('display', 'none')