Update GCSE CS blog
This commit is contained in:
@@ -2,4 +2,28 @@
|
|||||||
iframe {
|
iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
|
}
|
||||||
|
.mdc-top-app-bar--fixed-adjust {
|
||||||
|
text-align: left;
|
||||||
|
margin: 0 15%;
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1000px) {
|
||||||
|
.mdc-top-app-bar--fixed-adjust {
|
||||||
|
margin: 0 10%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
|
.mdc-top-app-bar--fixed-adjust {
|
||||||
|
margin: 0 5%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.mdc-top-app-bar--fixed-adjust {
|
||||||
|
margin: 0 2%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 400px) {
|
||||||
|
.mdc-top-app-bar--fixed-adjust {
|
||||||
|
margin: 0 1%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -26,10 +26,12 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
JS files are linked by using the following code:
|
JS files are linked by using the following code:
|
||||||
|
<br>
|
||||||
<code><script type="text/javascript" src="scripts/scripts.js"></script></code>
|
<code><script type="text/javascript" src="scripts/scripts.js"></script></code>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Adding the date when the window loads:
|
Adding the date when the window loads:
|
||||||
|
<br>
|
||||||
<code>
|
<code>
|
||||||
// onload of window
|
// onload of window
|
||||||
<br>
|
<br>
|
||||||
@@ -38,10 +40,11 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Ternary operators work by using:
|
Ternary operators work by using:
|
||||||
|
<br>
|
||||||
<code>[condition] ? [value if true] : [value if false]</code>
|
<code>[condition] ? [value if true] : [value if false]</code>
|
||||||
</li>
|
</li>
|
||||||
<li>The later a CSS file is imported, the more power it has over the document - i.e. the last stylesheet imported will overwrite the styling in all of the other stylesheets.</li>
|
<li>The later a CSS file is imported, the more power it has over the document - i.e. the last stylesheet imported will overwrite the styling in all of the other stylesheets.</li>
|
||||||
<li>To add another page, one can use an <code><iframe></code></li>
|
<li>To add another page, one can use an <code><iframe></code> or the jQuery <code>.load()</code> method.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user