Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Cleanup #1

Merged
merged 2 commits into from

2 participants

Brian Hall codeswish
Deleted user

Saw your question on reddit about getting your quiz to work in wordpress. Unfortunately, I don't know anything about how wordpress works under the hood. What I would try though, is to just include the 8 lines of code contained inside the body tags of quiz.html

I would first see if I could get the quiz working without css first. Don't include <html> or <body> tags in your post, they are already injected in your page by wordpress.

Deleted user

Also make sure to change the javascript src uri if you attempt posting it on wordpress to where ever you have it located on your server. When I was looking at the source of your broken page, I'm not the javascript was being referenced correctly.

Brian Hall
Owner

Thanks for taking a look. Good point about trying it without CSS first and WordPress' automatic injection of < html> and < body> . That didn't do the trick.

I think your second point is exactly where I am struggling. I do not know how make this line of code from the html file link correctly:
< script type="text/javascript" src="/Users/brianhall/Documents/Coding/DynamicQuiz/DynamicQuizJS.js">

You stated to "change the javascript src url if you attempt posting it on wordpress to where ever you have it located on your server." I am a noob into programming any advice you can give me on how to get it on my server? Clearly, I have it stored locally and reference the local file in the code.

Brian Hall hallbd16 merged commit 7bb7fe6 into from
Deleted user

Ahhh, I was wondering where the URI /Users/brianhall/Documents/Coding/DynamicQuiz/DynamicQuizJS.js was coming from, lol. You need to sign in to cPanel or whatever admin frontend your host provides to manage your websites and place the javascripts and css somewhere in theblogs filesystem hierarchy somewhere at or below the applications root and then link to that.

For a real quick hack attempt, try pointing the javascript src at this URI: https://raw.github.com/hallbd16/DynamicQuiz/master/js/quiz.js

Brian Hall
Owner

Ok, that is exactly what I was thinking the problem was but had no idea how to get the js code up and hosted. I reckon I need to study into system administrations and hosting... Any thoughts on whether this is best done via book learning (any recommendations) or better served by browsing the internet.

But most importantly, thanks for the help, and the 'quick fix' as well. The code is working now, thanks!

http://www.briandavishall.com/98-2/

Deleted user

I don't know where you're from, but I would head over to meetup.com and google and search for wordpress user groups near where you live you could regularly attend. Getting live help from people more experienced is probably the best way to iron out nooby questions. They would have the best recommendation on what learning resources are worth your time as well.

Deleted user ghost deleted the branch
Brian Hall
Owner

Cool, I'll do that. Thanks again and hope karma sends good things back your way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 27, 2013
  1. codeswish
  2. codeswish

    removing cruft

    codeswish authored
This page is out of date. Refresh to see the latest.
15 DynamicQuizHTML.html
View
@@ -1,15 +0,0 @@
-
-<html><head>
-<title>Dynamic Quiz</title>
-<script src="DynamicQuizJS.js"></script>
-<link type="text/css" rel="stylesheet" href="DynamicQuizCSS"/>
-<body>
-<h1>My Dynamic Quiz</h1>
-<div id="container">
-<h1 id="h1"></h1>
-
-<ul id="list"></ul>
-<br></br>
-<button id="backButton">Back</button> <button id="button">Next</button>
-</div>
-</body></html>
0  DynamicQuizJS.js → js/quiz.js
View
File renamed without changes
18 quiz.html
View
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Dynamic Quiz</title>
+ <link rel="stylesheet" type="text/css" href="stylesheets/style.css"/>
+ </head>
+ <body>
+ <h1>My Dynamic Quiz</h1>
+ <div id="container">
+ <h1 id="h1"></h1>
+
+ <ul id="list"></ul>
+ <br/>
+ <button id="backButton">Back</button> <button id="button">Next</button>
+ </div>
+ <script src="js/quiz.js"></script>
+ </body>
+</html>
0  DynamicQuizCSS → stylesheets/style.css
View
File renamed without changes
Something went wrong with that request. Please try again.