function start() { let mission; Swal.fire({ title: `勇者${name},你即將進入了充滿陷阱的迷宮。.`, text: "一旦選錯路就會馬上 GG,你要開始了嗎?", confirmButtonText: '出發!', cancelButtonText: '先不要。.', showCancelButton: true, allowOutsideClick: false, imageUrl: 'files/10.jpg', imageHeight: 300, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33' }).then((result) => { if (result.dismiss === 'cancel') { Swal.fire({ title: `等你準備好挑戰再來吧!`, allowOutsideClick: false, imageUrl: 'files/11.jpg', imageHeight: 300 }); } else { Swal.fire({ title: `欣賞你的勇氣,開始闖五關吧!`, allowOutsideClick: false, imageUrl: 'files/12.gif', imageHeight: 300 }).then(function () { Swal.fire({ title: "第 1 關:詭異的不明聲音", text: "遠處發出低沉的怒吼,要前往查看嗎?", confirmButtonText: '來瞧瞧!', cancelButtonText: '危險不去', showCancelButton: true, allowOutsideClick: false, imageUrl: 'files/20.gif', imageHeight: 300, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33' }).then((result) => { if (result.dismiss === 'cancel') { Swal.fire({ title: "GAME OVER", text: `因為忽略,找不到廁紙可用的道長對你使出了咒殺`, confirmButtonText: "重新來過", allowOutsideClick: false, imageUrl: "files/21.jpg", imageHeight: 300 }); } else { Swal.fire({ title: "過關", text: "原來是沒有廁紙的旅行者,給了他一些廁紙,繼續趕路", allowOutsideClick: false, imageUrl: 'files/22.jpg', imageHeight: 300 }).then(function () { Swal.fire({ title: "第 2 關:周杰倫的可愛女人", text: "有個女人受傷跌在地上,去扶她嗎?", confirmButtonText: '美女怎啦!', cancelButtonText: '趕路不去', showCancelButton: true, allowOutsideClick: false, imageUrl: 'files/30.gif', imageHeight: 300, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33' }).then((result) => { if (result.dismiss !== 'cancel') { Swal.fire({ title: "GAME OVER", text: "因為遇到碰瓷,你的旅行已提早結束", confirmButtonText: "重新來過", allowOutsideClick: false, imageUrl: "files/31.gif", imageHeight: 300 }); } else { Swal.fire({ title: "過關", text: "沒有任何豔遇發生", allowOutsideClick: false, imageUrl: 'files/32.jpg', imageHeight: 300 }).then(function () { Swal.fire({ title: "第 3 關:浦島太郎是膩?", text: "有個烏龜正被小屁孩欺負,要救嗎?", confirmButtonText: '唉唷救牠!', cancelButtonText: '趕路不去', showCancelButton: true, allowOutsideClick: false, imageUrl: 'files/40.jpg', imageHeight: 300, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33' }).then((result) => { if (result.dismiss !== 'cancel') { Swal.fire({ title: "GAME OVER", text: "原來小屁孩是官二代,你被黑衣人綁走了", confirmButtonText: "重新來過", allowOutsideClick: false, imageUrl: "files/41.jpg", imageHeight: 300 }); } else { Swal.fire({ title: "過關", text: "原來是隻鱉,一口反擊了小屁孩,自食惡果", allowOutsideClick: false, imageUrl: 'files/42.gif', imageHeight: 300 }).then(function () { Swal.fire({ title: "第 4 關:這次變桃太郎膩?", text: "有隻狗跟你乞討丸子吃,要給嗎?", confirmButtonText: '餓壞了,吃吧!', cancelButtonText: '想吃去買阿', showCancelButton: true, allowOutsideClick: false, imageUrl: 'files/50.gif', imageHeight: 300, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33' }).then((result) => { if (result.dismiss !== 'cancel') { Swal.fire({ title: "GAME OVER", text: "又來了雞跟猴子,誘拐你立即前往鬼島討罰", confirmButtonText: "重新來過", allowOutsideClick: false, imageUrl: "files/51.jpg", imageHeight: 300 }); } else { Swal.fire({ title: "過關", text: "狗生氣地朝你揮了一拳?沒事發生。.. 前進吧!小氣的勇者", allowOutsideClick: false, imageUrl: 'files/52.jpg', imageHeight: 300 }).then(function () { Swal.fire({ title: "第 5 關:掉落的陷阱?", text: "不小心掉到密室內,牆上發現有謎題該去解嗎?", confirmButtonText: '解開!', cancelButtonText: '小心有詐', showCancelButton: true, allowOutsideClick: false, imageUrl: 'files/60.jpg', imageHeight: 300, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33' }).then((result) => { if (result.dismiss === 'cancel') { Swal.fire( { title:"GAME OVER", text:"因為你的疑心病,被困在密室內無法離開", confirmButtonText:"重新來過", allowOutsideClick: false, imageUrl:"files/61.gif", imageHeight: 300 } ); } else { Swal.fire({ title: "過關", text: "你帥氣的解出 1+1=2 順利逃脫密室", allowOutsideClick: false, imageUrl: 'files/62.jpg', imageHeight: 300 }).then(function () { finish(1); }); } }); }); } }); }); } }); }); } }); }); } }); }); } }); }
|