Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Separate logic and styles contained in index.html #10

Closed
wants to merge 14 commits into from
Closed

Separate logic and styles contained in index.html #10

wants to merge 14 commits into from

Conversation

ChristofLee
Copy link
Collaborator

Contains changes from #6 , suggest accepting that PR first, before reviewing this.

This PR should solve issue #8. It separates the CSS and JS scripts into their own files and folders.

It should be easier to manage going forward, using a standardised file tree.

- Define object of configurable settings
- Move JS files into build directory for organisation
- Git ignore the npm modules
- Update link to JS scripts
- Move our build and generate our dist files
- Install NPM package
- Add a main partial for our custom styles
- Move semantic css into a vendor folder
- Create main style file
- Link to main style file
- Move form.js into vendor dir
- Remove script from index page
@@ -0,0 +1,81 @@
var urlRegex = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/g;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoisted variables out of doc ready.

var urlRegex = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/g;
var initialUrl = 'https://eddyst.one/';

function make2Digit(d) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoisted functions out of doc ready.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant