Skip to content

Commit eecd611

Browse files
committed
Examples: remove code-block wrapper
1 parent 6fc05ba commit eecd611

163 files changed

Lines changed: 242 additions & 1010 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/acceleration-with-vectors.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,7 @@ <h1>Acceleration With Vectors</h1>
116116
mover.update();
117117
mover.display();
118118
}<\/script></body></html>`);doc.close();})();</script>
119-
<div class="code-block">
120-
<div class="code-header">
121-
<span>acceleration-with-vectors.pde</span>
122-
<button class="copy-btn" onclick="copyCode()">Copy</button>
123-
</div>
124-
<div class="syntax-block">/**
119+
<div class="syntax-block">/**
125120
* Acceleration with Vectors
126121
* by Daniel Shiffman.
127122
*

examples/additive-wave.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,7 @@ <h1>Additive Wave</h1>
144144
calcWave();
145145
renderWave();
146146
}<\/script></body></html>`);doc.close();})();</script>
147-
<div class="code-block">
148-
<div class="code-header">
149-
<span>additive-wave.pde</span>
150-
<button class="copy-btn" onclick="copyCode()">Copy</button>
151-
</div>
152-
<div class="syntax-block">/**
147+
<div class="syntax-block">/**
153148
* Additive Wave
154149
* by Daniel Shiffman.
155150
*

examples/alpha-mask.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,7 @@ <h1>Alpha Mask</h1>
9191
image(img, mouseX, mouseY);
9292
}
9393
}<\/script></body></html>`);doc.close();})();</script>
94-
<div class="code-block">
95-
<div class="code-header">
96-
<span>alpha-mask.pde</span>
97-
<button class="copy-btn" onclick="copyCode()">Copy</button>
98-
</div>
99-
<div class="syntax-block">/**
94+
<div class="syntax-block">/**
10095
* Alpha Mask.
10196
*
10297
* Loads a "mask" for an image to specify the transparency

examples/animated-sprite.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,7 @@ <h1>Animated Sprite</h1>
119119
return 0;
120120
}
121121
}<\/script></body></html>`);doc.close();})();</script>
122-
<div class="code-block">
123-
<div class="code-header">
124-
<span>animated-sprite.pde</span>
125-
<button class="copy-btn" onclick="copyCode()">Copy</button>
126-
</div>
127-
<div class="syntax-block">/**
122+
<div class="syntax-block">/**
128123
* Animated Sprite (Shifty + Teddy)
129124
* by James Paterson.
130125
* Translated to C++ Mode.

examples/arctangent.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,7 @@ <h1>Arctangent</h1>
124124
e3.update(mouseX, mouseY);
125125
e3.display();
126126
}<\/script></body></html>`);doc.close();})();</script>
127-
<div class="code-block">
128-
<div class="code-header">
129-
<span>arctangent.pde</span>
130-
<button class="copy-btn" onclick="copyCode()">Copy</button>
131-
</div>
132-
<div class="syntax-block">/**
127+
<div class="syntax-block">/**
133128
* Arctangent.
134129
*
135130
* Move the mouse to change the direction of the eyes.

examples/arm.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,7 @@ <h1>Arm</h1>
101101
rotate(a);
102102
line(0, 0, segLength, 0);
103103
}<\/script></body></html>`);doc.close();})();</script>
104-
<div class="code-block">
105-
<div class="code-header">
106-
<span>arm.pde</span>
107-
<button class="copy-btn" onclick="copyCode()">Copy</button>
108-
</div>
109-
<div class="syntax-block">/**
104+
<div class="syntax-block">/**
110105
* Arm.
111106
*
112107
* The angle of each segment is controlled with the mouseX and

examples/array-2d.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,7 @@ <h1>Array 2D</h1>
100100
}
101101
}
102102
}<\/script></body></html>`);doc.close();})();</script>
103-
<div class="code-block">
104-
<div class="code-header">
105-
<span>array-2d.pde</span>
106-
<button class="copy-btn" onclick="copyCode()">Copy</button>
107-
</div>
108-
<div class="syntax-block">/**
103+
<div class="syntax-block">/**
109104
* Array 2D.
110105
*
111106
* Demonstrates the syntax for creating a two-dimensional (2D) array.

examples/array-objects.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,7 @@ <h1>Array Objects</h1>
140140
mods[i].display();
141141
}
142142
}<\/script></body></html>`);doc.close();})();</script>
143-
<div class="code-block">
144-
<div class="code-header">
145-
<span>array-objects.pde</span>
146-
<button class="copy-btn" onclick="copyCode()">Copy</button>
147-
</div>
148-
<div class="syntax-block">/**
143+
<div class="syntax-block">/**
149144
* Array Objects.
150145
*
151146
* Demonstrates the syntax for creating an array of custom objects.

examples/array.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,7 @@ <h1>Array</h1>
108108
line(i, y1, i, y2);
109109
}
110110
}<\/script></body></html>`);doc.close();})();</script>
111-
<div class="code-block">
112-
<div class="code-header">
113-
<span>array.pde</span>
114-
<button class="copy-btn" onclick="copyCode()">Copy</button>
115-
</div>
116-
<div class="syntax-block">/**
111+
<div class="syntax-block">/**
117112
* Array.
118113
*
119114
* An array is a list of data. Each piece of data in an array

examples/arraylist-of-objects.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,7 @@ <h1>ArrayList of objects</h1>
120120
function mousePressed() {
121121
balls.push(new Ball(mouseX, mouseY, ballWidth));
122122
}<\/script></body></html>`);doc.close();})();</script>
123-
<div class="code-block">
124-
<div class="code-header">
125-
<span>arraylist-of-objects.pde</span>
126-
<button class="copy-btn" onclick="copyCode()">Copy</button>
127-
</div>
128-
<div class="syntax-block">class Ball {
123+
<div class="syntax-block">class Ball {
129124
public:
130125
float x;
131126
float y;

0 commit comments

Comments
 (0)