Skip to content

Instantly share code, notes, and snippets.

@zalun
Last active November 26, 2019 21:14

Revisions

  1. zalun revised this gist Apr 25, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fiddle.manifest
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,4 @@ resources:
    - /js/empty.js
    - /css/normalize.css
    normalize_css: no
    panel_css: SCSS
    lang_css: SCSS
  2. zalun revised this gist Apr 25, 2014. 2 changed files with 4 additions and 2 deletions.
    3 changes: 2 additions & 1 deletion fiddle.css
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    $fullred: #ff0000;
    body {
    font-family: Helvetica, Verdana
    }
    p {
    padding: 7px 10px;
    }
    #demo {
    border: 1px solid #999;
    border: 1px solid $fullred;
    }
    3 changes: 2 additions & 1 deletion fiddle.manifest
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,5 @@ authors:
    resources:
    - /js/empty.js
    - /css/normalize.css
    normalize_css: no
    normalize_css: no
    panel_css: SCSS
  3. zalun revised this gist Feb 17, 2011. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion fiddle.manifest
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,5 @@ authors:
    - Piotr Zalewa
    resources:
    - /js/empty.js
    - /css/normalize.css
    - /css/normalize.css
    normalize_css: no
  4. zalun revised this gist Feb 17, 2011. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion fiddle.manifest
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    name: Request.HTML - jsFiddle/Gist integration demo
    description: jsFiddle demo hosted on Gist using HTML Request to get Ajax data
    authors:
    - Piotr Zalewa
    - Piotr Zalewa
    resources:
    - /js/empty.js
    - /css/normalize.css
  5. zalun revised this gist Oct 1, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fiddle.html
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    <p>Result will appear below with 1 sec delay</p>
    <div id="demo"><p>This text will be replaced</p></div>

    <p><a href='http://blog.jsfiddle.net/doc-api-gist' target='_new'>Documentation</a></p>
    <p><a href='http://doc.jsfiddle.net/use/gist_read.html' target='_new'>Documentation</a></p>
    <p><a href='http://gist.github.com/606699/' target='_new'>Gist Demo</a></p>
  6. zalun revised this gist Oct 1, 2010. 4 changed files with 6 additions and 6 deletions.
    4 changes: 2 additions & 2 deletions fiddle.html
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    <p>Result will appear below with 1 sec delay</p>
    <div id="demo"><p>This text will be replaced</p></div>

    <p><a href='http://blog.jsfiddle.net/doc-api-github' target='_new'>Documentation</a></p>
    <p><a href='http://github.com/zalun/jsFiddleGithubDemo/tree/master/Demo/' target='_new'>Demo on Github</a></p>
    <p><a href='http://blog.jsfiddle.net/doc-api-gist' target='_new'>Documentation</a></p>
    <p><a href='http://gist.github.com/606699/' target='_new'>Gist Demo</a></p>
    2 changes: 1 addition & 1 deletion fiddle.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    window.addEvent('domready', function() {
    new Request.HTML({
    url: '/gh/get/response.html/zalun/jsFiddleGithubDemo/tree/master/Demo/',
    url: '/gh/gist/response.html/606699/',
    data: {'delay': 1},
    method: 'post',
    update: 'demo',
    4 changes: 2 additions & 2 deletions fiddle.manifest
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    name: Request.HTML - jsFiddle/Github integration demo
    description: jsFiddle demo hosted on Github using HTML Request to get Ajax data
    name: Request.HTML - jsFiddle/Gist integration demo
    description: jsFiddle demo hosted on Gist using HTML Request to get Ajax data
    authors:
    - Piotr Zalewa
    2 changes: 1 addition & 1 deletion fiddle.response.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    <p>This <span>content</span> is placed on the github</p>
    <p>This <span>content</span> is loaded from Gist via XHR request (<span>Ajax</span>)</p>
    <p>It has also some <span>JavaScript</span> code which is setting the background for spans</p>
    <script type='text/javascript'>
    $$('#demo span').each(function(el) {
  7. zalun revised this gist Oct 1, 2010. 5 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.
  8. zalun revised this gist Oct 1, 2010. 5 changed files with 23 additions and 2 deletions.
    5 changes: 5 additions & 0 deletions demo.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    <p>Result will appear below with 1 sec delay</p>
    <div id="demo"><p>This text will be replaced</p></div>

    <p><a href='http://blog.jsfiddle.net/doc-api-github' target='_new'>Documentation</a></p>
    <p><a href='http://github.com/zalun/jsFiddleGithubDemo/tree/master/Demo/' target='_new'>Demo on Github</a></p>
    11 changes: 11 additions & 0 deletions demo.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    window.addEvent('domready', function() {
    new Request.HTML({
    url: '/gh/get/response.html/zalun/jsFiddleGithubDemo/tree/master/Demo/',
    data: {'delay': 1},
    method: 'post',
    update: 'demo',
    onSuccess: function(response) {
    $('demo').highlight();
    }
    }).send();
    })
    7 changes: 7 additions & 0 deletions demo.response.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    <p>This <span>content</span> is placed on the github</p>
    <p>It has also some <span>JavaScript</span> code which is setting the background for spans</p>
    <script type='text/javascript'>
    $$('#demo span').each(function(el) {
    el.setStyle('backgroundColor', '#ffb');
    });
    </script>
    1 change: 0 additions & 1 deletion xxx
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    xxx
    1 change: 0 additions & 1 deletion yyy
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    yyy
  9. zalun revised this gist Oct 1, 2010. 2 changed files with 4 additions and 1 deletion.
    4 changes: 4 additions & 0 deletions demo.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    name: Request.HTML - jsFiddle/Github integration demo
    description: jsFiddle demo hosted on Github using HTML Request to get Ajax data
    authors:
    - Piotr Zalewa
    1 change: 0 additions & 1 deletion manifest
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    manifest
  10. zalun revised this gist Oct 1, 2010. 2 changed files with 9 additions and 1 deletion.
    9 changes: 9 additions & 0 deletions demo.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    body {
    font-family: Helvetica, Verdana
    }
    p {
    padding: 7px 10px;
    }
    #demo {
    border: 1px solid #999;
    }
    1 change: 0 additions & 1 deletion zzz
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    zzz
  11. zalun created this gist Oct 1, 2010.
    1 change: 1 addition & 0 deletions manifest
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    manifest
    1 change: 1 addition & 0 deletions xxx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    xxx
    1 change: 1 addition & 0 deletions yyy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    yyy
    1 change: 1 addition & 0 deletions zzz
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    zzz