Advertisement
BLOCKLY18

alert maker

Aug 6th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. $alert({
  2. title: "Windows 93 Alert Generator",
  3. msg: "Welcome to Windows 93 Alert Generator,\nmade by Blockly",
  4. btnOk: "Start",
  5. btnCancel: "Quit",
  6. sound: "",
  7. icon: "/c/sys/skins/w93/alert.png"
  8. }, function(ok){
  9. if (ok) {
  10. $prompt({
  11. title: "AlertGen93",
  12. msg: "Alert Box Title:",
  13. btnOk: "Next",
  14. img: "/c/sys/skins/w93/settings.png",
  15. icon: "/c/sys/skins/w93/alert.png"
  16. }, '', function(ok, text){
  17. if (ok) {
  18. var title = text;
  19. $prompt({
  20. title: "AlertGen93",
  21. msg: "Alert message:",
  22. btnOk: "Next",
  23. img: "/c/sys/skins/w93/mail.png",
  24. icon: "/c/sys/skins/w93/alert.png"
  25. }, '', function(ok, text){
  26. if (ok) {
  27. var msg = text;
  28. $prompt({
  29. title: "AlertGen93",
  30. msg: "OK Button text:",
  31. btnOk: "Next",
  32. img: "/c/sys/skins/w93/help.png",
  33. icon: "/c/sys/skins/w93/alert.png"
  34. }, '', function(ok, text){
  35. if (ok) {
  36. var btnOk = text;
  37. $prompt({
  38. title: "AlertGen93",
  39. msg: "Cancel Button text (leave blank for no cancel button):",
  40. btnOk: "Next",
  41. icon: "/c/sys/skins/w93/alert.png",
  42. img: "/c/sys/skins/w93/stuff.png"
  43. }, '', function(ok){
  44. if (ok) {
  45. var btnCancel = text;
  46. $alert({
  47. title: "AlertGen93",
  48. msg: "Pick an image to appear on the alert",
  49. btnOk: "Choose image",
  50. icon: "/c/sys/skins/w93/alert.png",
  51. img: "/c/sys/skins/w93/apps/imgviewer.png",
  52. sound: ""
  53. }, function(ok){
  54. if (ok) {
  55. $explorer({
  56. browse: !0, accept: 'image/*', path: '/c/sys/skins/w93/', onclose: function(file){
  57. $alert('You selected ' + file)
  58. }
  59. });
  60. }
  61. });
  62. }
  63. });
  64. }
  65. });
  66. }
  67. });
  68. }
  69. });
  70. }
  71. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement