diff --git a/assets/linker/js/uservoice.js b/assets/linker/js/uservoice.js new file mode 100644 index 0000000..cf49c3f --- /dev/null +++ b/assets/linker/js/uservoice.js @@ -0,0 +1,41 @@ +// Include the UserVoice JavaScript SDK (only needed once on a page) +UserVoice=window.UserVoice||[];(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='//widget.uservoice.com/YAKnScraZind3GFEkSBvvw.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})(); + +// +// UserVoice Javascript SDK developer documentation: +// https://www.uservoice.com/o/javascript-sdk +// + +// Set colors +UserVoice.push(['set', { + accent_color: '#808283', + trigger_color: 'white', + trigger_background_color: '#e2753a' +}]); + +// Identify the user and pass traits +// To enable, replace sample data with actual user traits and uncomment the line +UserVoice.push(['identify', { + //email: 'john.doe@example.com', // User’s email address + //name: 'John Doe', // User’s real name + //created_at: 1364406966, // Unix timestamp for the date the user signed up + //id: 123, // Optional: Unique id of the user (if set, this should not change) + //type: 'Owner', // Optional: segment your users by type + //account: { + // id: 123, // Optional: associate multiple users with a single account + // name: 'Acme, Co.', // Account name + // created_at: 1364406966, // Unix timestamp for the date the account was created + // monthly_rate: 9.99, // Decimal; monthly rate of the account + // ltv: 1495.00, // Decimal; lifetime value of the account + // plan: 'Enhanced' // Plan name for the account + //} +}]); + +// Add default trigger to the bottom-right corner of the window: +UserVoice.push(['addTrigger', { mode: 'contact', trigger_position: 'bottom-right' }]); + +// Or, use your own custom trigger: +//UserVoice.push(['addTrigger', '#id', { mode: 'contact' }]); + +// Autoprompt for Satisfaction and SmartVote (only displayed under certain conditions) +UserVoice.push(['autoprompt', {}]); diff --git a/views/about.jade b/views/about.jade index 356f4a3..9d038d5 100644 --- a/views/about.jade +++ b/views/about.jade @@ -24,7 +24,9 @@ block interiorcontent h2 Help us improve! p - | We are always looking to improve the site. So, give us your feedback! + | We are always looking to improve the site. So, give us your feedback! See + | that little question mark bubble in the bottom right corner of the page? Just + | Click on that and tell us anything you need to! p | You can keep track of recent updates listed over there under "Recent updates". diff --git a/views/layout.jade b/views/layout.jade index 1bb7f27..9f5407c 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -34,5 +34,6 @@ html(lang="en",ng-app="lunchApp") script(type="text/javascript", src="/linker/js/controllers/home-controller.js") script(type="text/javascript", src="/linker/js/controllers/run-controller.js") script(type="text/javascript", src="/linker/js/services/socket.js") + script(type="text/javascript", src="/linker/js/uservoice.js") script(type="text/javascript", src="/linker/js/vendor/jquery.backstretch.min.js") // SCRIPTS END