Skip to content

Instantly share code, notes, and snippets.

@dludwig
Created March 1, 2011 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dludwig/848636 to your computer and use it in GitHub Desktop.
Save dludwig/848636 to your computer and use it in GitHub Desktop.
how to include javascript?
/*
* 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