Created
March 1, 2011 04:58
-
-
Save dludwig/848636 to your computer and use it in GitHub Desktop.
how to include javascript?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* AppController.j | |
* designer | |
* | |
* Created by You on February 2, 2010. | |
* Copyright 2010, Your Company All rights reserved. | |
*/ | |
// @implementation CPPlatform (disableHTMLDrag) | |
// + (BOOL)supportsDragAndDrop { | |
// return NO; | |
// } | |
// @end | |
@import <Foundation/Foundation.j> | |
@import <AppKit/AppKit.j> | |
@import "AppController.j" | |
function main(args, namedArgs) | |
{ | |
CPApplicationMain(args, namedArgs); | |
CPLogRegister(CPLogConsole); | |
<script type="text/javascript" charset="utf-8"> | |
var is_ssl = ("https:" == document.location.protocol); | |
var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/"; | |
document.write(unescape("%3Cscript src='" + asset_host + "javascripts/feedback-v2.js' type='text/javascript'%3E%3C/script%3E")); | |
</script> | |
<script type="text/javascript" charset="utf-8"> | |
var feedback_widget_options = {}; | |
feedback_widget_options.display = "overlay"; | |
feedback_widget_options.company = "hp_wallart"; | |
feedback_widget_options.placement = "left"; | |
feedback_widget_options.color = "#222"; | |
feedback_widget_options.style = "idea"; | |
var feedback_widget = new GSFN.feedback_widget(feedback_widget_options); | |
</script> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment