Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to creat puzzle 15 at jq

    <!DOCTYPE html>
<html>
  <!--
  Homework 6: Fifteen Puzzle
  You should not modify fifteen.html.  Your JS code should work with an
  unmodified version of this file.
  -->
  <head>
    <title>Fifteen Puzzle</title>
        <link href="fifteen.css" type="text/css" rel="stylesheet" />
        <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js" type="text/javascript"></script>
        <!-- I had to add the line above for some reason. I couldn't get it to work for a very very long time and someone pointed me to
        this line of code above and it fixed all of my issues. -->
        <script src="fifteen.js" type="text/javascript"></script>  
    </head>

  <body>
    <h1>Fifteen Puzzle</h1>

    <p>
      The goal of the fifteen puzzle is to un-jumble its fifteen squares
      by repeatedly making moves that slide squares into the empty space.
      How quickly can you solve it?
    </p>

    <div id="puzzlearea">
      <!-- the following are the actual fifteen puzzle pieces -->
      <div>1</div>  <div>2</div>  <div>3</div>  <div>4</div>
      <div>5</div>  <div>6</div>  <div>7</div>  <div>8</div>
      <div>9</div>  <div>10</div> <div>11</div> <div>12</div>
      <div>13</div> <div>14</div> <div>15</div>
    </div>

    <p id="controls">
      <button id="shufflebutton">Shuffle</button>
    </p>

    <p>
      American puzzle author and mathematician Sam Loyd is often falsely
      credited with creating the puzzle; indeed, Loyd claimed from 1891
      until his death in 1911 that he invented it.
      The puzzle was actually created around 1874 by Noyes Palmer Chapman,
      a postmaster in Canastota, New York.
    </p>

    <div id="w3c">
      <a href="https://webster.cs.washington.edu/validate.php"> 
        <img src="w3c-html.png" alt="Validate HTML5" width="88" height="31"/></a>
      <a href="https://webster.cs.washington.edu/validate-css.php"> 
        <img src="w3c-css.png" alt="Validate CSS" width="88" height="31"/></a>
    </div>
  </body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: foreach access this 
Javascript :: how to set Json node in java 
Javascript :: parallel testing vs cross browser testing 
Javascript :: start to work with a pre existing react projects 
Javascript :: ejs-multiselect 
Javascript :: javascript loop payment 
Javascript :: javascript troubleshooting with jest 
Javascript :: node close rabbitmq connection 
Javascript :: Trouble setting up sample table. “Could not find matching row model for rowModelType clientSide” 
Javascript :: lookupedit devexpress get specific row 
Javascript :: discord.js how to go back a file 
Javascript :: what is code.jquery integrity crossorigin 
Javascript :: eyeshot javascript version 
Javascript :: how to make a button jump between two functions when clicked in javascript 
Javascript :: puppeteer sign in to popup facebook 
Javascript :: how to transpose json data 
Javascript :: vuejs use set to prevent duplicates 
Javascript :: to put dash between two even numbers in number 
Javascript :: javascript vérifier si une chaine de carctère commence par une majuscule 
Javascript :: hide url in discord.js 
Javascript :: how to save image in fabruc js json 
Javascript :: adding growl delete notifications in vanilla js 
Javascript :: how to access viewmodel in jquery 
Javascript :: what is amqp10 policy nodejs 
Javascript :: 07-Customize width and height props with Fixed and Flex dimensions 
Javascript :: js extract all tags not have attr 
Javascript :: screen.render is not a function in node 
Javascript :: recuperer une image dans la base de données avec angular 
Javascript :: what is reactive method 
Javascript :: diynamic time vue js 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =