diff options
author | 2011-03-07 09:04:49 +0100 | |
---|---|---|
committer | 2011-03-07 09:04:49 +0100 | |
commit | 94d2fc1815a919734353c942f224db1de4b4fcb8 (patch) | |
tree | 4168e816ead132bfa3510e272427837c3895f5e2 /emacs.d/nxhtml/tests/in/jj-081226.html | |
parent | d0e7674fdb1de12c8de202d4028a5d7ed3669a6e (diff) | |
download | dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.tar.gz dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.zip |
Django, org
* Added nxhtml, mostly for django support.
* Changed some org settings.
Diffstat (limited to 'emacs.d/nxhtml/tests/in/jj-081226.html')
-rw-r--r-- | emacs.d/nxhtml/tests/in/jj-081226.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/jj-081226.html b/emacs.d/nxhtml/tests/in/jj-081226.html new file mode 100644 index 0000000..9599014 --- /dev/null +++ b/emacs.d/nxhtml/tests/in/jj-081226.html @@ -0,0 +1,26 @@ +<script type="text/javascript"> + // <![CDATA[ + // Set this to the URL you used to fetch recommendations, whether you + // fetched them on the client or the server. + var request_url="%(json_url)s"; + + // This function is used track click-throughs by fetching a web + // beacon + function trackClickThrough(elem) { + var img = new Image(); + img.src = '%(beacon_url)s' + + '?request_url=' + escape(request_url) + + '&click_through_url=' + escape(elem.href); + return true; + } + // ]]> +</script> +<p> + <!-- + Imagine this is one of the recommendations that was returned. + Just add an onclick handler that calls trackClickThrough. + --> + <a href="http://www.google.com" + onclick="return trackClickThrough(this);">Click me!</a> +</p> + |