ncase.github.io | my personal site , fo ' realz | Web Site library
kandi X-RAY | ncase.github.io Summary
kandi X-RAY | ncase.github.io Summary
Minimalist design for a static site. Not much to it. Good. All code here is dedicated to the public domain, under CC Zero.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ncase.github.io
ncase.github.io Key Features
ncase.github.io Examples and Code Snippets
Community Discussions
Trending Discussions on ncase.github.io
QUESTION
My JavaScript code does not run on GitPages. It should display a background slideshow, but instead... does nothing. Other people experiencing the same issue mostly fix their problem by using the https protocol instead of of http.
However, I'm using relative filepaths
src="js/script.js"
.
I've tried using https protocol with relative filepaths
src="https://js/script.js
.
I've tried using https protocol with absolute filepaths
src="https://github.com/absolute_path/js/script.js"
I've tried embedding the script in the html document itself, rather than calling an external file
All of these work fine on my local machine, but none of them work on GitPages. The rest of the site works fine, including CSS--it's just the JavaScript that's not working. I'm new to GitHub and have no experience with JavaScript, so your help and patience is greatly appreciated.
GitPages page and repository
...ANSWER
Answered 2019-Apr-16 at 18:38Your images are named 1.JPG
in the repository but are referenced as 1.jpg
in your CSS. Github file paths are case-sensitive, so you need make "jpg" uppercase in slide.css
. Your js (only modernizr.js) appears to be loading fine.
If you are using a mac, your local filesystem is case insensitive so it would work fine locally.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ncase.github.io
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page