Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
bc8ae20
Created file mean.js & test file mean.test.js and wrote code and test…
EL1VAS Nov 6, 2025
5c7adf7
Created files for exercises and their tests. Copied the code.
EL1VAS Nov 6, 2025
c27dca3
Copied the code in exercise-2 file
EL1VAS Nov 6, 2025
d67bad2
Defined the variable as an array
EL1VAS Nov 6, 2025
b610439
Made numbers the parameter
EL1VAS Nov 6, 2025
67bc3d1
Tried to log the doubleAllNumbers (and failed)
EL1VAS Nov 6, 2025
98a84fc
Created a variable that i could log in the console
EL1VAS Nov 6, 2025
0d09f79
Wrote the function to swap first-last digits of array
EL1VAS Nov 6, 2025
4a38ce9
Deleted the arr[] as testing indicated it was already declared
EL1VAS Nov 6, 2025
90d2e37
Changed the title in html
EL1VAS Nov 22, 2025
2a00029
Changed the header
EL1VAS Nov 22, 2025
ce92cea
Celled pickFromArray
EL1VAS Nov 22, 2025
6d2a073
Wrote the function and connected it with the elements of html
EL1VAS Nov 22, 2025
cd51b54
Added a "-" before the author display
EL1VAS Nov 22, 2025
a0d12fd
Added the css file link and created the container for css to use. Add…
EL1VAS Nov 22, 2025
aa62448
Stylled the background mostly to see the display atm
EL1VAS Nov 22, 2025
353e7a9
Added the height
EL1VAS Nov 22, 2025
d012f97
Fixed typo
EL1VAS Nov 22, 2025
c8bb5f4
Fixed the typo, I will add an icon of double quotation in the css fil…
EL1VAS Nov 22, 2025
c181bcc
Testing the fonts
EL1VAS Nov 22, 2025
a87c27b
Testing fonts
EL1VAS Nov 22, 2025
edec5f0
Coppied the embed code for my font
EL1VAS Nov 22, 2025
160a8bd
Added a class to my quote to use the font from google fonts
EL1VAS Nov 22, 2025
57d5d2a
Added class to the author for smaller letters
EL1VAS Nov 22, 2025
2d39295
Font style testing
EL1VAS Nov 22, 2025
246e24f
Font testing
EL1VAS Nov 22, 2025
0c2a9c7
Testing fonts
EL1VAS Nov 22, 2025
c8def17
Authors font style
EL1VAS Nov 22, 2025
61b8757
Testing size of font
EL1VAS Nov 22, 2025
c41679b
Fixed typo
EL1VAS Nov 22, 2025
c507e8e
Fixed typos
EL1VAS Nov 22, 2025
bf9aeee
Identation and moved header over the icon
EL1VAS Nov 22, 2025
6574fc2
Testing the icon
EL1VAS Nov 22, 2025
7ba7f03
Color test
EL1VAS Nov 22, 2025
e0dedda
Color
EL1VAS Nov 22, 2025
6616c14
Moved the icon to display with quote
EL1VAS Nov 22, 2025
f2a3340
Try to display the quotation
EL1VAS Nov 22, 2025
04b1884
Fixed the js file to properly dispay the double quotation in the begg…
EL1VAS Nov 22, 2025
4c009b4
Fixed typo
EL1VAS Nov 22, 2025
db08a89
Fixed typo
EL1VAS Nov 22, 2025
f27aff9
Adjusted size of quotation mark
EL1VAS Nov 22, 2025
b09bbcb
Color of container and container style
EL1VAS Nov 22, 2025
c3c79f7
Aligned the box to avoid scrolling
EL1VAS Nov 22, 2025
49f6c62
Trying to align the button
EL1VAS Nov 22, 2025
09b014b
Floated the button right
EL1VAS Nov 22, 2025
48ef082
Distance between author and text and button fixed
EL1VAS Nov 22, 2025
acb5253
Shadow testing
EL1VAS Nov 22, 2025
253a01a
Font testing in button
EL1VAS Nov 22, 2025
6a28e6b
Testing the header
EL1VAS Nov 22, 2025
d1e4c62
Added auto generate button
EL1VAS Nov 22, 2025
500371a
Possitioned the toggle button
EL1VAS Nov 22, 2025
47b69c1
POssitioned the button in the left corner of container not body
EL1VAS Nov 22, 2025
1f66118
Added the auto status in html
EL1VAS Nov 22, 2025
419f9ec
Created the on off in css
EL1VAS Nov 22, 2025
1afd29b
Wrote the function for the toggle button
EL1VAS Nov 22, 2025
2efa6f4
try to show the text when button is on
EL1VAS Nov 22, 2025
795bb79
Trying with different methods
EL1VAS Nov 22, 2025
0bdf836
Corrected the button function
EL1VAS Nov 22, 2025
88bb39a
Trying to display different message when toggle button is on
EL1VAS Nov 22, 2025
ffaf993
trying to aligh text and checkbox and also replace the text display d…
EL1VAS Nov 22, 2025
3738861
Trying to fix the duotations so the tests don't fail because of them
EL1VAS Nov 22, 2025
7335b77
trying to fix height of author and also updated the js file to displa…
EL1VAS Nov 22, 2025
87f03ab
Adjusted the size of quotation mark
EL1VAS Nov 22, 2025
d831625
Changed innerHtml with textContent
EL1VAS Nov 22, 2025
0e8340b
Fixed span to p for quote to pass the test
EL1VAS Nov 22, 2025
f9c6c5e
Removed quotation mark
EL1VAS Nov 22, 2025
7506960
Removed the quote icon
EL1VAS Nov 22, 2025
a9049c3
Typos
EL1VAS Nov 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false
Expand Down
37 changes: 25 additions & 12 deletions Sprint-3/quote-generator/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Title here</title>
<script defer src="quotes.js"></script>
</head>
<body>
<h1>hello there</h1>
<p id="quote"></p>
<p id="author"></p>
<button type="button" id="new-quote">New quote</button>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quote generator app</title>
<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Bad+Script&display=swap"
rel="stylesheet"
/>
<script defer src="quotes.js"></script>
</head>
<body>
<div class="container">
<h1>~ Food for thought ~</h1>
<p id="quote" class="bad-script-regular"></p>
<p id="author" class="bad-script-small"></p>
<button type="button" id="new-quote">New quote</button>
<div class="auto-toggle-row">
<input type="checkbox" id="auto-toggle" />
<span id="auto-status" class="auto-status"></span>
</div>
</div>
</body>
</html>
8 changes: 7 additions & 1 deletion Sprint-3/quote-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@
"bugs": {
"url": "https://github.com/CodeYourFuture/CYF-Coursework-Template/issues"
},
"homepage": "https://github.com/CodeYourFuture/CYF-Coursework-Template#readme"
"homepage": "https://github.com/CodeYourFuture/CYF-Coursework-Template#readme",
"devDependencies": {
"@testing-library/user-event": "^14.6.1"
},
"dependencies": {
"fresh": "^0.5.2"
}
}
Loading