1 @model CPE.App.Web.Models.RecordingView
10 <meta http-equiv="X-UA-Compatible" content="IE=9" />
11 <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
12 <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
13 <title>@Model.Name</title>
14 <link rel="stylesheet" href="/static/css/index/recording.css"/>
15 <script type="text/javascript" src="/static/js/jquery-1.10.1.min.js"></script>
16 <script type="text/javascript" src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
17 <link rel="stylesheet" href="/static/css/redmond/jquery-ui-1.10.3.custom.min.css"/>
19 .ui-tooltip, .arrow:after {
21 border: 1px solid #004B73;
29 <script type="text/javascript" src="/static/js/detect-zoom.js"></script>
30 <script type="text/javascript">
33 if (navigator.platform.toUpperCase().indexOf('WIN') !== -1 && navigator.userAgent.indexOf('NT 5.1') !== -1) {
40 var isIE8orLower = false;
46 <script type="text/javascript">
51 <script type="text/javascript">
56 <script type="text/javascript" src="/static/js/jquery-1.10.1.min.js"></script>
57 <script type="text/javascript" src="/static/js/jquery-ui.min.js"></script>
58 <script type="text/javascript">
60 $('document').ready(function () {
65 var dialog = $('#question').dialog({
68 title: "Submit a Question",
74 var winHeight = $(window).height();
77 if (winHeight < dlgHeight) {
78 dlgHeight = winHeight;
80 $("#question").dialog("option", "height", dlgHeight);
82 $('#question').empty();
83 $("#question").append('<iframe height="768" allowTransparency="true" frameborder="0" scrolling="yes" style="width:100%;border:none" src="@Model.QAlink"/>');
87 function showSurvey() {
89 var openWindow = isIE || (isXP && isChrome);
91 dialog.dialog('open');
99 $('#btnQuestion').click(function () {
102 $('.hover-text').tooltip();
104 if (isXP && isChrome) {
105 setTimeout(function () {
106 $('#btnQuestion').trigger('mouseover');
107 $("#btnQuestion").trigger("hover");
108 $(".hover-text").tooltip("destroy");
112 $('div.control_layer').remove();
113 $('#iframe-fix').remove();
116 $(window).resize(function () {
121 zoom = DetectZoom.zoom();
122 setOverlayHeightFromZoom(zoom);
124 $(window).resize(function () {
129 setInterval(function () {
134 function openSurveyWindow() {
135 var link = "@Model.QAlink";
136 link = link.replace(/&/gi, '&');
137 window.open(link, "_blank", "height=768, width=480, toolbar=0, location=0, status=1, scrollbars=1, resizable=1");
140 window.onbeforeunload = function () {
145 setTimeout(function () {
148 var browser = navigator.userAgent.toLowerCase();
150 if (browser.indexOf("firefox") > -1)
151 response = "Please click \"Stay on Page\" at the next prompt to take a brief moment to complete our Survey.";
152 else if (browser.indexOf("msie") > -1)
153 response = "Please click \"Cancel\" to stay on the current page to take a brief moment to complete our Survey.";
154 else if (browser.indexOf("webkit") > -1)
155 response = "Please click \"Stay on this Page\" to take a brief moment to complete our Survey.";
156 else if (browser.indexOf("opera") > -1)
157 response = "Please click \"Cancel\" to stay on the current page to take a brief moment to complete our Survey.";
159 response = "Please click \"Cancel\" to stay on the current page to take a brief moment to complete our Survey.";
160 if (/Firefox[\/\s](\d+)/.test(navigator.userAgent) && new Number(RegExp.$1) >= 4)
166 function loadSurvey() {
167 window.location = "/index/wufoo/@Model.PrincipalId";
170 // function trackEnter() {
171 // var principalId = $("#principal_id").val();
172 // var meetingSessionKey = $("#meetingSessionKey").val();
173 // var first = $("#firstname").val();
174 // var last = $("#lastname").val();
175 // var email = $("#email").val();
177 // var url = "/static/services/engagement/service.asmx/TrackUser?meetingSessionKey=" + meetingSessionKey +
178 // "&principal_id=" + principalId + "&firstname=" + encodeURIComponent(first) + "&lastname=" + encodeURIComponent(last) +
179 // "&email=" + encodeURIComponent(email) + "&type=0";
181 // //TrackUser(int meetingSessionKey, int principal_id, string firstname, string lastname, string email, byte type)
189 function trackExit() {
190 var principalId = $("#principal_id").val();
191 var meetingSessionKey = $("#meetingSessionKey").val();
192 var first = $("#firstname").val();
193 var last = $("#lastname").val();
194 var email = $("#email").val();
196 //TrackUser(int meetingSessionKey, int principal_id, string firstname, string lastname, string email, byte type)
197 var url = "/static/services/engagement/service.asmx/TrackUser?meetingSessionKey=" + meetingSessionKey +
198 "&principal_id=" + principalId + "&firstname=" + encodeURIComponent(first) + "&lastname=" + encodeURIComponent(last) +
199 "&email=" + encodeURIComponent(email) + "&type=1";
208 function checkHeight() {
209 var winHeight = $(window).height();
211 if (winHeight <= 605) {
212 $('div.ie_layer').css('height', '55px');
215 $('div.ie_layer').css('height', '45px');
218 function checkZoom(isResize) {
219 if(isResize === undefined || isResize === null) {
222 var zoomNew = DetectZoom.zoom();
223 if (zoom != zoomNew) {
225 // adjust overlay height
227 setOverlayHeightFromZoom(zoom);
230 setOverlayHeightFromZoom(zoom);
233 function setOverlayHeightFromZoom(zoom) {
234 var winHeight = $(window).height();
237 winHeight = winHeight * zoom;
240 var normalHeight = 45;
241 if (winHeight <= 605 && zoom <= 1) {
244 var normalWidth = 15;
249 newHeight = normalHeight / zoom;
250 newWidth = normalWidth / zoom;
252 newHeight = normalHeight;
253 newWidth = normalWidth;
256 if ($('#control_layer').length > 0) {
257 $('#control_layer').attr('style', 'z-index:8999;' + newHeight + 'px;');
258 $('#control_layer').height(newHeight);
260 if ($('#ie_layer').length > 0) {
261 $('#ie_layer').attr('style', 'z-index:8999;' + newHeight + 'px;');
262 $('#ie_layer').height(newHeight);
265 if ($('#sidebar_layer').length > 0) {
266 $('#sidebar_layer').attr('style', 'z-index:8999;' + newWidth + 'px;');
267 $('#sidebar_layer').width(newWidth);
274 <div id="question" class="hidden"></div>
275 <div id="container" style="height: 100%;width: 100%;">
276 <input id="meetingSessionKey" type="hidden" value="@Model.MeetingSessionKey"/>
277 <input id="principal_id" type="hidden" value="@Model.PrincipalId"/>
278 <input id="firstname" name="firstName" type="hidden" value="@Model.FirstName"/>
279 <input id="lastname" name="lastname" type="hidden" value="@Model.LastName"/>
280 <input id="email" name="email" type="hidden" value="@Model.Email"/>
281 <input id="certificate_id" type="hidden" value="@Model.CertificateId" />
282 <iframe id="iframe-sidebar-fix"style="position: absolute; left:0px; top:0px; width:15px; height:100%;z-index:8998; background: gray"></iframe>
283 <div id="sidebar_layer" class="sidebar_layer" style="z-index: 8999;">
285 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
286 id="CpeLeftRecordingOverlay" width="100%" height="100%"
287 codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
288 <param name="movie" value="/static/swf/CpeLeftRecordingOverlay.swf" />
289 <param name="quality" value="high" />
290 <param name="bgcolor" value="gray" />
291 <param name="allowScriptAccess" value="sameDomain" />
292 <embed src="/static/swf/CpeLeftRecordingOverlay.swf" quality="high" bgcolor="gray"
293 width="100%" height="100%" name="CpeLeftRecordingOverlay" align="middle"
297 allowScriptAccess="sameDomain"
298 type="application/x-shockwave-flash"
299 pluginspage="http://www.adobe.com/go/getflashplayer">
304 <iframe id="iframe-fix"style="position: absolute; left:0px; bottom:0px; width:100%; height:50px; background:transparent"></iframe>
305 <div id="control_layer" class="control_layer" style="z-index: 8999;">
306 <input type="button" class="hover-text" id="btnQuestion" title="Click Button to Send a Question" value="Submit a Question" style="z-index: 9000;"/>
310 <div id="ie_layer" class="ie_layer" style="z-index: 8999;">
311 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="display:block;"
312 id="CpeRecordingOverlay" name="CpeRecordingOverlay" width="100%" height="100%"
313 codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
314 <param name="movie" value="/static/swf/CpeRecordingOverlay.swf" />
315 <param name='flashVars' value='surveyUrl=@Url.Encode(@Model.QAlink)'/>
316 <param name="quality" value="high" />
317 <param name="bgcolor" value="gray" />
318 <param name="allowScriptAccess" value="always" />
319 <embed id="flashOverlay" src="/static/swf/CpeRecordingOverlay.swf" quality="high" bgcolor="gray"
320 width="100%" height="100%" name="flashOverlay" align="middle"
321 flashVars="surveyUrl=@Url.Encode(@Model.QAlink)"
325 allowScriptAccess="always"
326 type="application/x-shockwave-flash"
327 pluginspage="http://www.adobe.com/go/getflashplayer">
332 <iframe id="connect-recording" src="@Model.Url" style="z-index: 0;" />@*/rebroadcast/RecordingProxy?recordingUrl=*@