PageSourceSearch

https://neb-one.gc.ca/includes/js/randomize-video-eng.js

js neb-one.gc.ca collected 2026-10-02 03:57:07 UTC 7,630 bytes, 185 lines download raw bytes

1function RandomizeVideo(randomNum) {
2	var int = randomNum;
3	var videoContainer;
4	var video;
5	var videoTitle;
6	var transcriptLink;
7	var downloadHref;
8	var downloadTitle;
9	var downloadText;
10	
11	if(int == 1)
12	{
13		videoContainer = "Who We Are";
14		video = "/en/about/news-room/videos/mp4/whwr-eng.mp4";
15		videoTitle = "Who We Are and What We Do";
16		transcriptLink = "/bts/nws/vds/trnscrptwhwr-eng.html";
17		downloadHref = "/en/about/news-room/videos/mp4/whwr-eng.mp4";
18		downloadTitle = "Download - Who We Are";
19		downloadText = "Download [mp4 28 MB]";
20	}
21	if(int == 2)
22	{		
23		videoContainer = "Hearing Process";
24		video = "/en/about/news-room/videos/mp4/nbhrngprcss-eng.mp4";
25		videoTitle = "Hearing Process";
26		transcriptLink = "/bts/nws/vds/trnscrptnbhrngprcss-eng.html";
27		downloadHref = "/en/about/news-room/videos/mp4/nbhrngprcss-eng.mp4";
28		downloadTitle = "Download - Hearing Process";
29		downloadText = "Download [mp4 32 MB]";
30	}
31	if(int == 3)
32	{
33		videoContainer = "Application to Participate";
34		video = "/en/about/news-room/videos/mp4/atp-eng.mp4";
35		videoTitle = "Application to Participate";
36		transcriptLink = "/bts/nws/vds/trnscrptatp-eng.html";
37		downloadHref = "/en/about/news-room/videos/mp4/atp-eng.mp4";
38		downloadTitle = "Download - Application to Participate";
39		downloadText = "Download [mp4 46 MB]";
40	}
41	if(int == 4)
42	{
43		videoContainer = "Responding to Emergencies";
44		video = "/en/about/news-room/videos/mp4/mrgnc-eng.mp4";
45		videoTitle = "Responding to Emergencies";
46		transcriptLink = "/bts/nws/vds/trnscrptmrgnc-eng.html";
47		downloadHref = "/en/about/news-room/videos/mp4/mrgnc-eng.mp4";
48		downloadTitle = "Download - Responding to Emergencies";
49		downloadText = "Download [mp4 44 MB]";
50	}
51	if(int == 5)
52	{
53		videoContainer = "Exploring Canada/’s Energy Future";
54		video = "/en/about/news-room/videos/mp4/dtvslztn.mp4";
55		videoTitle = "Exploring Canada’s Energy Future";
56		transcriptLink = "/bts/nws/vds/trnscrptdtvslztn-eng.html";
57		downloadHref = "/en/about/news-room/videos/mp4/dtvslztn.mp4";
58		downloadTitle = "Download - Exploring Canada/’s Energy Future";
59		downloadText = "Download [mp4 12 MB]";
60	}
61	if(int == 6)
62	{
63		videoContainer = "Intro to: Valves";
64		video = "/en/about/news-room/videos/mp4/intrvlvs-eng.mp4";
65		videoTitle = "Intro to: Valves";
66		transcriptLink = "/bts/nws/vds/trnscrptvlvs-eng.html";
67		downloadHref = "/en/about/news-room/videos/mp4/intrvlvs-eng.mp4";
68		downloadTitle = "Download - Intro to: Valves";
69		downloadText = "Download [mp4 13 MB]";
70	}
71	if(int == 7)
72	{
73		videoContainer = "Intro to: Hydrostatic Testing";
74		video = "/en/about/news-room/videos/mp4/hdrsttc-eng.mp4";
75		videoTitle = "Intro to: Hydrostatic Testing";
76		transcriptLink = "/bts/nws/vds/trnscrpthdrsttc-eng.html";
77		downloadHref = "/en/about/news-room/videos/mp4/hdrsttc-eng.mp4";
78		downloadTitle = "Download - Intro to: Hydrostatic Testing";
79		downloadText = "Download [mp4 21 MB]";
80	}
81	if(int == 8)
82	{
83		videoContainer = "Compliance and Enforcement";
84		video = "/en/about/news-room/videos/mp4/cmplncnfrcmnt-eng.mp4";
85		videoTitle = "Compliance and Enforcement";
86		transcriptLink = "/bts/nws/vds/trnscrptcmplncnfrcmnt-eng.html";
87		downloadHref = "/en/about/news-room/videos/mp4/cmplncnfrcmnt-eng.mp4";
88		downloadTitle = "Download - Compliance and Enforcement";
89		downloadText = "Download [mp4 14 MB]";
90	}
91	if(int == 9)
92	{
93		videoContainer = "The Lifecycle Approach";
94		video = "/en/about/news-room/videos/mp4/lfccl-eng.mp4";
95		videoTitle = "The Lifecycle Approach";
96		transcriptLink = "/bts/nws/vds/trnscrptlfccl-eng.html";
97		downloadHref = "/en/about/news-room/videos/mp4/lfccl-eng.mp4";
98		downloadTitle = "Download - The Lifecycle Approach";
99		downloadText = "Download [mp4 11 MB]";	
100	}
101	if(int == 10)
102	{
103		videoContainer = "Environmental Protection";
104		video = "/en/about/news-room/videos/mp4/nvrnmntlprtctn-eng.mp4";
105		videoTitle = "Environmental Protection";
106		transcriptLink = "/bts/nws/vds/trnscrptnvrnmntlprtctn-eng.html";
107		downloadHref = "/en/about/news-room/videos/mp4/nvrnmntlprtctn-eng.mp4";
108		downloadTitle = "Download - Environmental Protection";
109		downloadText = "Download [mp4 21 MB]";	
110	}
111	if(int == 11)
112	{
113		videoContainer = "Pipeline Design";
114		video = "/en/about/news-room/videos/mp4/pplndsgn-eng.mp4";
115		videoTitle = "Pipeline Design";
116		transcriptLink = "/bts/nws/vds/trnscrptpplndsgn-eng.html";
117		downloadHref = "/en/about/news-room/videos/mp4/pplndsgn-eng.mp4";
118		downloadTitle = "Download - Pipeline Design";
119		downloadText = "Download [mp4 14 MB]";	
120	}
121	if(int == 12)
122	{
123		videoContainer = "Maintenance Programs/Integrity Digs";
124		video = "/en/about/news-room/videos/mp4/ntgrtdgs-eng.mp4";
125		videoTitle = "Maintenance Programs/Integrity Digs";
126		transcriptLink = "/bts/nws/vds/trnscrptntgrtdgs-eng.html";
127		downloadHref = "/en/about/news-room/videos/mp4/ntgrtdgs-eng.mp4";
128		downloadTitle = "Download - Maintenance Programs/Integrity Digs";
129		downloadText = "Download [mp4 21 MB]";	
130	}
131	if(int == 13)
132	{
133		videoContainer = "Pressure Restrictions";
134		video = "/en/about/news-room/videos/mp4/prssrrstrctns-eng.mp4";
135		videoTitle = "Pressure Restrictions";
136		transcriptLink = "/bts/nws/vds/trnscrptprssrrstrctns-eng.html";
137		downloadHref = "/en/about/news-room/videos/mp4/prssrrstrctns-eng.mp4";
138		downloadTitle = "Download - Pressure Restrictions";
139		downloadText = "Download [mp4 13 MB]";	
140	}
141	if(int == 14)
142	{
143		videoContainer = "Valve Placement";
144		video = "/en/about/news-room/videos/mp4/vlvplcmnt-eng.mp4";
145		videoTitle = "Valve Placement";
146		transcriptLink = "/bts/nws/vds/trnscrptvlvplcmnt-eng.html";
147		downloadHref = "/en/about/news-room/videos/mp4/vlvplcmnt-eng.mp4";
148		downloadTitle = "Download - Valve Placement";
149		downloadText = "Download [mp4 14 MB]";	
150	}
151	if(int == 15)
152	{
153		videoContainer = "Living and Working Near Pipelines";
154		video = "/en/about/news-room/videos/mp4/lvngndwrkng-eng.mp4";
155		videoTitle = "Living and Working Near Pipelines";
156		transcriptLink = "/bts/nws/vds/trnscrptlvngndwrkng-eng.html";
157		downloadHref = "/en/about/news-room/videos/mp4/lvngndwrkng-eng.mp4";
158		downloadTitle = "Download - Living and Working Near Pipelines";
159		downloadText = "Download [mp4 20 MB]";	
160	}
161	if(int == 16)
162	{
163		videoContainer = "Pipe Fittings";
164		video = "/en/about/news-room/videos/mp4/ppfttngs-eng.mp4";
165		videoTitle = "Pipe Fittings";
166		transcriptLink = "/bts/nws/vds/trnscrptppfttngs-eng.html";
167		downloadHref = "/en/about/news-room/videos/mp4/ppfttngs-eng.mp4";
168		downloadTitle = "Download - Pipe Fittings";
169		downloadText = "Download [mp4 20 MB]";	
170	}
171	
172	document.write("<figure class=\"wb-mltmd\">");
173	document.write("<video id=\"videoContainer\" title=\"" + videoContainer + "\">");
174	document.write("	<source id=\"videoSource\" type=\"video/mp4\" src=\"" + video + "\" ></source>");
175	document.write("</video>");
176	document.write("<figcaption>");
177	document.write("	<div class=\"row\">");
178	document.write("	  <div class=\"col-md-12 text-center mrgn-bttm-md\"><p class=\"small mrgn-tp-sm\"><span id=\"videoTitle\">" + videoTitle + "</span><br />");
179	document.write("	    <a id=\"transcriptLink\" href=\"" + transcriptLink + "\" class=\"pull-left\">Transcript</a>");
180    document.write("        <span class=\"pull-right\"><a id=\"downloadLink\" href=\"" + downloadHref + "\" title=\"" + downloadTitle + "\">" + downloadText + "</a></span></p>");
181	document.write("	  </div>");
182    document.write("    </div>");
183	document.write("</figcaption>");
184	document.write("</figure>");
185}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.