Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Foxscotch

Pages: 1 ... 1436 1437 1438 1439 1440 [1441] 1442 1443 1444 1445 1446 ... 1619
21601
Off Topic / Re: pizza
« on: August 24, 2014, 04:05:49 PM »
now I want some pizza.....

21602
Off Topic / Re: tell me your steam name
« on: August 24, 2014, 03:57:48 PM »
foxscotch

21603
Drama / Re: Server Crashes When Some People Join
« on: August 24, 2014, 03:55:54 PM »
holy forget we had a intruder all this time?
well no I don't think so. it wasn't really a secret. I know ip knew and so did I, and clearly badspot did

21605
Drama / Re: Emo Freak v5
« on: August 24, 2014, 03:50:25 PM »
why the forget am I getting a boner at this
im not gay but what
"im not gay" he says, after getting hard looking at another guy's richard

21606
Suggestions & Requests / Re: Delete Undo
« on: August 24, 2014, 03:42:06 PM »
also maybe someone could fix the redo script, I haven't seen much talk about it in a while. It's gotta be possible without being very glitchy by now right? It's at least worth looking into.
according to the topic it just allows you to make floating bricks
...so he removed the link to the download. which is ridiculous imo. I wish I had a copy of it though

21607
if you ask me this is worse than stealing respawnable cars

21608
Off Topic / Re: pizza
« on: August 24, 2014, 03:31:31 PM »
how do these little kids know what a visa is they are like six years old

21609
Off Topic / Re: Random Omegle conversations!
« on: August 24, 2014, 03:14:12 PM »
always enter an interest when using omegle. it really cuts down on bots

21610
Off Topic / Re: [html] doesn't work
« on: August 24, 2014, 03:12:55 PM »
HTML doesn't work in forum posts. like, every single real forum software has that feature by default...
allowing it would be a security risk

he did also disable the bulletin board code for embedding, though

21611
Forum Games / Re: YOU CRINGE YOU LOSE
« on: August 24, 2014, 03:12:04 PM »
why would you go to japan to learn how to develop video games

21612
Off Topic / Re: Random Omegle conversations!
« on: August 24, 2014, 02:41:37 PM »
Stranger: hi stranger
You: hello
Stranger: m/f?
You: i am a deposed nigerian prince
Stranger: Okay well I'm trying to tell people about this new random chat app called CHATՕUՏ
Stranger: its like a mix of omegle, snapchat, and kik, but NO bots or pervs!! Way better than here
Stranger: I'm gonna go tell some more people about this, but you should give CHATՕUՏ a try!!
Stranger has disconnected.
it seems ironic to me that they would use a bot to advertise their supposedly bot-free service

21613
Off Topic / Re: JQuery help - Coding Minesweeper
« on: August 24, 2014, 02:28:40 PM »
whatever you did made it so that the number of mines setting actually just determines how many entire columns are filled with mines


one difference was here


another was here


etc
there were some others of that same kind of issue
so just go fix all of those

21614
Off Topic / Re: Furry Megathread - Furry Things Here
« on: August 24, 2014, 01:48:39 PM »
ew no, needs more delicious little kitty girls. :3


21615
Off Topic / Re: JQuery help - Coding Minesweeper
« on: August 24, 2014, 01:22:06 PM »
it's working perfectly fine for me



the only thing I changed was adding jquery to the HTML (and commenting "This is the line that is giving me problems" but that wasn't the source of the real problem)

here's an exact copy of the code I'm using

<DOCTYPE HTML>
<html>
   <head>
      <style>
      input[type="number"] {
      width: 50px;
      padding: 1px;
      background-color: grey;
      color: #fff;
      font-weight: bold;
      font-size: 16px;
      font-family: monospace;
   }
   #Demineur {
      width: 252px;
      height: 252px;
      background: #999;
      padding: 0px;
      border: 2px solid #000;
   }
   input[type="button"] {
      letter-spacing: normal;
      word-spacing: normal;
      line-height: normal;
      text-transform: none;
      text-indent: 0px;
      text-shadow: none;
   }
   input[type='button'].square {
      margin: 0px;
      padding: 0px;
      width: 21px;
      height: 21px;
      font-weight: bold;
      font-size: 14px;
      background-color: #BFBFBF;
      display: inline-block;
      float: left;
      border-top: 3px solid white;
      border-left: 3px solid white;
      border-right: 3px solid #707070;
      border-bottom: 3px solid #707070;
   }
   input[type='button'].square:active, input[type='button'].square.active {
      background-color: #BFBFBF;
      border-top: 3px solid #BFBFBF;
      border-left: 3px solid #BFBFBF;
      border-right: 3px solid #BFBFBF;
      border-bottom: 3px solid #BFBFBF;
   }
   #scoreboard {
      padding: 10px;
      width: auto;
      height: 26px;
      background-color: #BFBFBF;
      text-align: left;
      border-top: 3px solid #707070;
      border-left: 3px solid #707070;
      border-right: 3px solid white;
      border-bottom: 3px solid white;
   }
   #scoreboard .panel {
      display: inline-block;
      padding: 1px;
      background-color: black;
      color: #DF0D14;
      font-weight: bold;
      font-size: 16px;
      font-family: monospace;
      border-top: 1px solid #707070;
      border-left: 1px solid #707070;
      border-right: 1px solid #F0F0F0;
      border-bottom: 1px solid #F0F0F0;
   }
      </style>
      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
      <script>
         var nbFlags;
         var toDiscover;
         var arrayMines = new Array();
         var timer = false;
         var count = 0;

         setInterval(function () {
            if (timer) {
               $('#score-time-count').html(("00" + count).slice(-3));
               count++;
            }
         }, 1000);

         function init() {
            $(document).bind("contextmenu", function (e) { //This is the line that is giving me problems
               return false;
            });
            $('#Mines').html('');
            columns = $("[name='columns']").val();
            lines = $("[name='lines']").val();
            nbMines = $("[name='nbMines']").val();
            nbFlags = nbMines;
            toDiscover = columns * lines - nbMines;
            //count = 0;
            $('#Demineur').width(columns * 21);
            $('#Demineur').height(lines * 21 + 52);
            $('#score-bomb-count').html(("00" + nbFlags).slice(-3));

            //init table
            for (var i = 0; i < lines; i++) {
               arrayMines = new Array();
               for (var j = 0; j < columns; j++) {
                  arrayMines[j] = 0;
                  $("#Mines").append("<input type='button' class='square' id=" + i + "_" + j + " value='' onclick='clickMine(" + i + "," + j + ")' oncontextmenu='switchFlag(" + i + "," + j + ")'/>");
               }
               $("#Mines").append('<br>');
            }

            //random put mines
            var i = 0;
            while (i < nbMines) {
               var x = Math.floor(Math.random() * lines);
               var y = Math.floor(Math.random() * columns);
               if (arrayMines
  • [y] === 0) {

                  arrayMines
  • [y] = 1;

                  i++;
               }
            }
            timer = true;
            count = 0;
         }

         function clickMine(i, j) {
            //alert ("Clicked: "+i+";"+j);
            //remove flag
            if (arrayMines[j] > 1) {
               switchFlag(i, j);
            } else if (arrayMines[j] == 1) {
               $("#" + i + "_" + j).addClass("active");
               timer = false;
               showBombs();
               alert("BOOM !");
               //init();
            } else {
               $("#" + i + "_" + j).addClass("active");
               $("#" + i + "_" + j).attr('onclick', '');
               toDiscover--;
               var number = countMines(i, j);
               if (number !== 0) $("#" + i + "_" + j).prop('value', number);
               else for (var x = Math.max(0, i - 1); x <= Math.min(lines - 1, i + 1); x++)
               for (var y = Math.max(0, j - 1); y <= Math.min(columns - 1, j + 1); y++)
               if (arrayMines
  • [y] < 2 && !$("#" + x + "_" + y).hasClass('active')) clickMine(x, y);


               // Test victory
               checkVictory();
            }
         }

         function countMines(i, j) {
            var k = 0;
            for (var x = Math.max(0, i - 1); x <= Math.min(lines - 1, i + 1); x++)
            for (var y = Math.max(0, j - 1); y <= Math.min(columns - 1, j + 1); y++)
            if (arrayMines
  • [y] == 1 || arrayMines
  • [y] == 3) k++;

            return k;
         }

         function switchFlag(i, j) {
            if (!$("#" + i + "_" + j).hasClass('active')) {
               if (arrayMines[j] < 2) {
                  if (nbFlags > 0) {
                     arrayMines[j] += 2;
                     $("#" + i + "_" + j).prop('value', "F");
                     $("#" + i + "_" + j).css("color", "#FF0000");
                     nbFlags--;
                  }
               } else {
                  arrayMines[j] -= 2;
                  $("#" + i + "_" + j).prop('value', "");
                  $("#" + i + "_" + j).css("color", "");
                  nbFlags++;
               }
            }
            $('#score-bomb-count').html(("00" + nbFlags).slice(-3));
         }

         function showBombs() {
            for (var i = 0; i < lines; i++)
            for (var j = 0; j < columns; j++) {
               if (arrayMines[j] == 1) {
                  $("#" + i + "_" + j).prop('value', "*");
                  $("#" + i + "_" + j).css("font-size", "20px");
                  $("#" + i + "_" + j).css("background-color", "#FF0000");
               }
               $("#" + i + "_" + j).attr('onclick', 'init()');
            }
         }

         function checkVictory() {
            //alert (toDiscover);
            if (toDiscover === 0) {
               timer = false;
               for (var i = 0; i < lines; i++)
               for (var j = 0; j < columns; j++) {
                  if (arrayMines[j] == 1) {
                     $("#" + i + "_" + j).prop('value', "F");
                     $("#" + i + "_" + j).css("color", "#FF0000");
                  }
                  $("#" + i + "_" + j).attr('onclick', 'init()');
               }
               alert("WELL DONE!");
               toDiscover = -1;
            }
         }
      </script>
   </head>
<body>
   <div id="Options">Number of mines:
      <input type="number" name="nbMines" value="10">Columns:
      <input type="number" name="columns" value="12">&nbsp;Lines:
      <input type="number" name="lines" value="12">
   </div>
   <div id="Demineur">
      <div id="scoreboard">Mines:
         <div id="score-bomb-count" class="panel left">010</div>&nbsp;&nbsp;Time:
         <div id="score-time-count" class="panel right">000</div>
      </div>
      <div id='Mines'></div>
   </div>
   <br>
   <button onclick="init()">Restart</button>
</body>

</html>

Pages: 1 ... 1436 1437 1438 1439 1440 [1441] 1442 1443 1444 1445 1446 ... 1619