Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

JQuery Issues

$
0
0
Hi. I'm back again with another stupid question.

I'm trying to incorporate a slider bar into my Twine story, but due to on incompetence or inexperience, I am unable to actually get the darn thing working. I'm pretty sure I have the jQuery code placed in the correct place (the Stylesheet), I just cannot for the life of me figure out how to get it to show up in my passages.

This is the code I am using.
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>slider demo</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css">
  <style>#slider { margin: 10px; }	</style>
  <script src="//code.jquery.com/jquery-1.12.4.js"></script>
  <script src="//code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
</head>
<body>
 
<div id="slider"></div>
 
<script>
$( "#slider" ).slider();
max: 50
</script>
 
</body>
</html>

Also, how do I ensure that this sets a variable.

Many thanks.

Viewing all articles
Browse latest Browse all 1844

Trending Articles