Code Playground

Introduction: Code Playground

About: Engineer making renewable energy products for African entrepreneurs.
The instructables admin really deserve an extra dimension of respect... they have elected to keep their site open thus bringing functionality to a whole new level. ***This feature has since been removed for completely rational and understandable reasons (see below)***

Before you flame on - I really don't care what you think. The purpose of this instructable is to seek out new functionality by utilizing the triple curly bracket "tag" -- {{{

Simply place an open and close triple curly bracket on separate lines and include whatever html, javascript and likely more inside (but not on the same line as the brackets).

Rules... Post the code without the brackets -- then post the code with the brackets to display. Should you find something amazingly great - I will add a step to the topic. Do explore areas that have not been tapped (I'm curious if CSS will work).

<table width="300px" border="0"><tr><td><font color="red" size="6">Should you have something that you <br>suspect will cause trouble (popups, <br>alerts, etc. etc.) PLEASE post it <br>under one of the steps  labeled<br> "suspect code".<br><br> Also, do use common <br>sense -- making a request to the <br>database IMO is a no-no. <br>We don&apost want this feature taken down <br>due to user stupidity.</font></td></tr></table>

Step 1: External Image With Padding (simple Example)

<table style="border:1px solid orange;color:white;font-family:arial;" bgcolor=#000000>
<tr>
<td><img hspace="10" vspace="10" style="border:1px solid white;" src="http://i11.photobucket.com/albums/a166/Trebuchet03/P1020697Small.jpg"></td>
</tr>
<tr>
<td>Mystery Machine: Spotted near Tampa July 3rd, 2006</td>
</tr>
</table>

Should display a table containing an image with white borders and 10px padding all around. Text should be white and the table should have an orange border.

<table style="border:2px solid orange;color:white;font-family:arial;" bgcolor=#000000>  <tr>    <td><img hspace="10" vspace="10" style="border:1px solid white;" src="http://i11.photobucket.com/albums/a166/Trebuchet03/P1020697Small.jpg"></td>  </tr>  <tr>    <td>Mystery Machine: Spotted near Tampa July 3rd, 2006</td>  </tr></table>

Step 2: Suspect Code 1

...

Step 3: Suspect Code 10


Step 4: Image Overlay

<div style="position: absolute; left: 0px; top: 0px; height: 86px; width: 333px; "><img src="http://i11.photobucket.com/albums/a166/Trebuchet03/constuctables.gif" ></div>

<div style="position: absolute; left: 0px; top: 0px; height: 86px; width: 333px; "><img src="http://i11.photobucket.com/albums/a166/Trebuchet03/constuctables.gif" ></div>

Be the First to Share

    Recommendations

    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    33 Discussions

    0
    jackdaun
    jackdaun

    11 years ago on Introduction

    <div style="position: absolute; left: 0px; top: 0px; height: 86px; width: 333px; "><img src="http://i11.photobucket.com/albums/a166/Trebuchet03/constuctables.gif" ></div>

    <div style="position: absolute; left: 0px; top: 0px; height: 86px; width: 333px; "><img src="http://i11.photobucket.com/albums/a166/Trebuchet03/constuctables.gif" ></div>

    This should change the instructables logo

    0
    jackdaun
    jackdaun

    11 years ago on Introduction

    <table width="300px" border="0"><tr><td>
    <font color="red" size="6">Should you have something that you <br>suspect will cause trouble (popups, <br>alerts, etc. etc.) PLEASE post it <br>under one of the steps labeled<br> "suspect code".<br><br>
    Also, do use common <br>sense -- making a request to the <br>database IMO is a no-no. <br>We don't want this feature taken down <br>due to user stupidity.
    </font>
    </td>
    </tr>
    </table>

    0
    Steamdnt
    Steamdnt

    12 years ago on Introduction

    table width="300px" border="0"><tr><td>
    <font color="red" size="6">Should you have something that you <br>suspect will cause trouble (popups, <br>alerts, etc. etc.) PLEASE post it <br>under one of the steps labeled<br> "suspect code".<br><br>
    Also, do use common <br>sense -- making a request to the <br>database IMO is a no-no. <br>We don't want this feature taken down <br>due to user stupidity.
    </font>
    </td>
    </tr>
    </table>

    0
    ewilhelm
    ewilhelm

    14 years ago

    After some deliberation with Ryan, we determined that: 1) the triple curly brace was actually a bug we didn't mean to include, 2) there was too much risk letting people include whatever code they wanted. Particularly, we were worried about privacy issues with letting any old code run on what we hope is a trusted site.

    I really appreciate and share your desire to find new functionality. We've made a video function that will allow you embed Yahoo! and YouTube videos, and I look forward to working with you (this means everyone!) to build the new functionality you want.

    0
    coolguy
    coolguy

    Reply 13 years ago on Introduction

    If you want an example of user includes, look at myspace. They use so much crap preprocessor code to filter out potentially hazardous code that the load time sucks and it source is nasty.

    0
    trebuchet03
    trebuchet03

    Reply 14 years ago

    completely understandable (which is why I sent that eMail the other day) ;) Hehe... now I can see my rushed "red text" gunk up there :P But hey, it was late and I wanted to push this :P --- Out of curiosity.... will instructables ever become an open source?

    0
    wombat7
    wombat7

    Reply 14 years ago

    very bueno. i see you changed my stuff so it still plays, thanks. i am not sure but it seems video instructables may not become the norm because of editing issues (retakes, Freudian slips, ect.)however, i hope to see some more role out. thank you for the site.

    0
    fungus amungus
    fungus amungus

    Reply 14 years ago

    Totally makes sense to me. The ability to add any old code can create lots of problems and the stuff we played around with so far hasn't been essential.

    0
    pmac93
    pmac93

    13 years ago


    0
    pmac93
    pmac93

    13 years ago

    Video
    can not parse options from: style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=2696140193308720224&hl=en" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL"  FlashVars="playerMode=embedded"> </embed>, {width:400, height:300}
    , {width:400, height:300})]]
    0
    trebuchet03
    trebuchet03

    14 years ago

    <div style="position: absolute; left: 0px; top: 0px; height: 86px; width: 333px; "><img src="http://i11.photobucket.com/albums/a166/Trebuchet03/constuctables.gif" ></div>

    <div style="position: absolute; left: 0px; top: 0px; height: 86px; width: 333px; "><img src="http://i11.photobucket.com/albums/a166/Trebuchet03/constuctables.gif" ></div>

    This should change the instructables logo
    0
    zachninme
    zachninme

    Reply 13 years ago

    ERROR: unknown processor adfa

    This should really change the instructables logo
    0
    trebuchet03
    trebuchet03

    Reply 13 years ago

    close... but its behind the main layer and has padding on the page :P

    0
    fungus amungus
    fungus amungus

    Reply 14 years ago

    Hah! Now make a "Destructables" image for all those bomb tutorials.

    0
    saites2001
    saites2001

    Reply 14 years ago

    That's awesome!

    0
    ewilhelm
    ewilhelm

    Reply 14 years ago

    Heh! Nicely done.

    0
    trebuchet03
    trebuchet03

    14 years ago

    Hey Fungus.... did you re-do the JS page reload on "Suspect Code 1"? If not... it still seems to work...