1 <html> 2 <head> 3 <title>Synced notification App Info</title> 4 5 <script type="text/javascript"> 6 // Creates link (appended to the bottom of the page body) to trigger a 7 // new synced notification app info. The link's title will be |title| 8 // and the ASCII-serialized app info will be 9 // |synced_notification_app_info|. 10 function appendSyncedNotificationAppInfoLink(title, app_info) { 11 var link = document.createElement('a'); 12 link.innerHTML = title; 13 link.setAttribute('target', '_blank'); 14 link.setAttribute('href', 'triggersyncednotificationappinfo?' + 15 'synced_notification_app_info=' + 16 encodeURIComponent(app_info)); 17 document.body.appendChild(link); 18 } 19 </script> 20 </head> 21 22 <body> 23 <h1>Synced Notification App Info</h1> 24 25 <h2>Step 0: Sign in to the browser and set up Sync</h2> 26 27 <h2>Step 1: Click this link (only required once per server lifetime)</h2> 28 29 <a href="/customizeclientcommand?sessions_commit_delay_seconds=0"> 30 Make synced notification app info triggering instant</a> 31 32 <h2>Step 2: Ctrl-Click the link below to send a synced notification app info</h2> 33 34 <script type="text/javascript"> 35 // JSON version of an app info protobuf 36 appendSyncedNotificationAppInfoLink( 37 'Simple SyncedNotificationAppInfo', 38 'settings_display_name: \"Google Maps\"\n' + 39 'icon: {\n' + 40 ' alt_text: \"Google Maps\"\n' + 41 ' preferred_height: 80\n' + 42 ' preferred_width: 80\n' + 43 ' url: \"https://ssl.gstatic.com/s2/oz/images/notifications/app_icons/system-gplus_62d72f2ec5e1ef193f0dfa600eabcfeb.png\"\n' + 44 '}\n' + 45 'app_id: \"maps_street_view\"\n' + 46 'app_id: \"maps_earth_view\"\n'); 47 </script> 48 </body> 49 </html> 50