Commit 1c36a1de authored by colmoneill's avatar colmoneill
Browse files

bits and pieces for the ongoing module content

parent a9f0abbf
......@@ -15,7 +15,9 @@ function validateForm() {
function addName() {
var y = document.getElementById("main-header");
var queryString = document.location.search;
console.log(queryString);
var name = queryString.split("=")[1];
console.log(name);
if (name == undefined){
console.log("no name in URL query string")
}
......
......@@ -25,6 +25,10 @@ function pageLoaded() {
context.beginPath();
context.arc(300,200,40,0,Math.PI,true);
context.stroke();
//colored stroked rect
context.strokeStyle = "#FF0000";
context.strokeRect(20, 20, 150, 100);
// Text
context.font = "10px";
......@@ -34,6 +38,14 @@ function pageLoaded() {
var image = document.getElementById("image");
context.drawImage(image, 100, 100, 300, 300);
var newImg = new Image();
newImg.src = "assets/img/tesse.gif"
newImg.onload = function () {
// Draw image
context.drawImage(newImg, 300, 300, 50, 50);
}
}
pageLoaded();
\ No newline at end of file
# UI Programming module 2021 - 2022
* <01-web-basics>
* <02-git-version-control>
* <03-web-forms_data-reception>
* <04-canvas>
* <05-audio_and_canvas-transformations>
* <06-event-listeners>
* <07-buttons-and-dpads>
* <08-animations>
* <09-gameloops>
* <010-webStorage>
* 011-PWA
* 012-project
* <01-web-basics/>
* <02-git-version-control/>
* <03-web-forms_data-reception/>
* <04-canvas/>
* <05-audio_and_canvas-transformations/>
* <06-event-listeners/>
* <07-buttons-and-dpads/>
* <08-animations/>
* <09-gameloops/>
* <010-webStorage/>
* <011-PWA/>
* <012-project/>
## grading scheme
#### 0 – 35% Basic
You will obtain a grade in this range if you:
- deliver partial amounts of the practical
- push a repo to gitlab
- post a link to the CA spreadsheet
#### 35 - 75% Intermediate
You will obtain a grade in this range if you:
- meet all the spects in the briefing
- display a genuine understanding of the themes and practices of the practical
- surpass the practical requirements and display an ability to research and add to the requirements
#### 75 - 100 Advanced
You will obtain a grade in this range if you:
- surpass the practical by demonstrating particular interest in the subjects by adding a lot to the brief, relevant content, advanced styling and genuine interest.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment