Code Playground

About: Engineer making renewable energy products for African entrepreneurs.

Intro: Code Playground

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>

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Furniture Contest 2018

      Furniture Contest 2018
    • Metalworking Contest

      Metalworking Contest

    33 Discussions

    0
    None
    jackdaun

    9 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
    None
    jackdaun

    9 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
    None
    Steamdnt

    10 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
    None
    ewilhelm

    12 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.

    4 replies
    0
    None
    coolguyewilhelm

    Reply 11 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
    None
    trebuchet03ewilhelm

    Reply 12 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
    None
    wombat7ewilhelm

    Reply 12 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
    None
    fungus amungusewilhelm

    Reply 12 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
    None
    pmac93

    11 years ago


    0
    None
    pmac93

    11 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
    None
    trebuchet03

    12 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
    5 replies
    0
    None
    zachninmetrebuchet03

    Reply 11 years ago

    ERROR: unknown processor adfa

    This should really change the instructables logo
    0
    None
    trebuchet03zachninme

    Reply 11 years ago

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

    0
    None
    trebuchet03

    12 years ago

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

    1 reply