This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Happy Christmas</title> | |
| <style> | |
| @charset "UTF-8"; | |
| html { overflow-y: hidden; } | |
| body { margin: 0;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <script> | |
| /* | |
| DOMを使って動的にフォームを作り出すサンプル | |
| */ | |
| window.onload = function(){ | |
| var vbody = document.body | |
| , vform = createElement("form",vbody) | |
| , vbox = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <script> | |
| var map = { | |
| col:20 | |
| ,row:20 | |
| } | |
| var column = ((function(max,value){ | |
| var tmp = []; | |
| for (var col = 0; col < max; col++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enchant(); | |
| var game; | |
| var gs = {fps:30}; | |
| gs.window = { | |
| height:320 | |
| ,width:320 | |
| } | |
| gs.assets = {}; | |
| var STATUS = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html Elements | |
| !--...-- | |
| !DOCTYPE | |
| a | |
| abbr | |
| acronym(abbr) | |
| address | |
| applet(object) | |
| area | |
| article(new) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enchant(); | |
| var gs = { //ゲームウィンドウの幅,高さ,fpsを定義 | |
| width:320 | |
| ,height:320 | |
| ,fps:15 | |
| }; | |
| var direction = { | |
| right:1,left:-1 | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <script> | |
| (function main(){ | |
| var message = "降水確率を入力してください。"; | |
| var input = Number(prompt(message)); | |
| output(getMessage(input)); | |
| })(); | |
| function getMessage(probability){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!-- | |
| 1. 二次元配列を作成して、九九データの代入を行い、その後の表示は分けて作成する。 | |
| --> | |
| <table id="multiplication" border = "1"></table> | |
| <script> | |
| (function main(){ | |
| var MAX = 9; | |
| var data = createArrayData(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!-- | |
| 入力から、n個の年齢を受け取り、その平均年齢を算出するプログラムを作成してください。年齢は引数から取得するものとします。 | |
| 1. 年齢は、引数から取得する。 | |
| 2.引数が指定されていない場合は「引数に年齢を指定してください」のメッセージを表示する。 | |
| --> | |
| <script> | |
| (function main(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!-- | |
| 1. コマンドラインに「今日は何月何日でしょう?」のメッセージを表示する。 | |
| 2. それぞれ、「何月? ==> 」「何日? ==> 」を表示して入力を受け取る。 | |
| 3. 入力された月日が今日であれば「正解!!」、間違っていれば「間違っています」と表示する。 | |
| --> | |
| <script> | |
| (function(){ |