--
You received this message because you are subscribed to the Google Groups "Tweecode / Twine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/tweecode/-/k7trCW6v53kJ.
To post to this group, send email to twee...@googlegroups.com.
To unsubscribe from this group, send email to tweecode+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tweecode?hl=en.
--
You received this message because you are subscribed to the Google Groups "Tweecode / Twine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/tweecode/-/X8VrKptzDGwJ.
Absolutely. Any way it could be linked on http://www.gimcrackd.com/etc/src/ also?
I keep getting this error when I try to implement the map for my own Twine project:Error executing macro map: ReferenceError: jQuery is not defined
The map shows up in the corner of the screen, but this error shows in the line of the passage.
I believe I am copying all three parts into the header the right way, but maybe I'm missing something?Thanks!
--
Yeah- I copied the <script></script> part and put it right underneath the <title></title> line. I also tried the updated version of jquery, but it gave the same message.
Aha! That was the one! That did the trick perfectly! Thank you so much for all of your help!Wow. I really wish my final wasn't due tomorrow- but that is what caffeine is for!
--
macros['portrait'] = | |
{ | |
handler: function(place,macroName,params) | |
{ | |
if (params[0] == "*") { | |
var html = " "; | |
} else { | |
var html = "<img src='"+params[0]+"'>"; | |
} | |
jQuery("#char").html(html); | |
} | |
}; |
You received this message because you are subscribed to a topic in the Google Groups "Tweecode / Twine" group.--
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tweecode/lA4bIX3iegg/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tweecode+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Tweecode / Twine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tweecode/lA4bIX3iegg/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tweecode+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
macros['map'] =
{
handler: function(place,macroName,params)
{
var mapX = params[0];
var mapY = params[1];
$("map").firstChild.style = "left:-"+mapX+"px; top:-"+mapY+"px;";
}
};
#sidebar {
top: 240px;
}
#map {
position:fixed;
left: 20px;
top: 20px;
width: 200px;
height: 200px;
overflow: hidden;
}
#map img {
position: absolute;
left: 0px;
top: 0px;
transition: all 2s;
-webkit-transition: all 2s;
}
<html><div id="map"><img src="big.png"></div></html>