PageSourceSearch

https://www.beachhousebaltimore.com/bhwp/wp-content/themes/beachhousevii/js/project.js?v=1.02&ver=7.1.2

js beachhousebaltimore.com collected 2026-10-02 10:27:21 UTC 6,344 bytes, 197 lines download raw bytes

1var App = angular.module("App", []);
2
3App.controller("requestController", [
4	"$scope",
5	"$location",
6	function ($scope, $location) {
7		var scopeThis = this;
8		$scope.finalArray = [];
9		$scope.codeArray = [];
10		this.iterator = [0];
11		$scope.finished = false;
12		$scope.loadAudio = false;
13		var baseScope = $scope;
14
15		$scope.addItem = function (passed, optional) {
16			if ($scope.finalArray.indexOf(passed) !== -1) {
17				$scope.finalArray.splice($scope.finalArray.indexOf(passed), 1);
18			} else {
19				$scope.finalArray.push(passed);
20				$scope.codeArray.push(optional);
21				if ($scope.finalArray.length > 3) {
22					$scope.finalArray.splice(0, 1);
23					$scope.codeArray.splice(0, 1);
24				}
25			}
26		};
27		$scope.splicer = function (pindex) {
28			$scope.finalArray.splice(pindex, 1);
29			$scope.codeArray.splice(pindex, 1);
30		};
31
32		$scope.formSubmit = function () {
33			console.log("submitting");
34			if ($scope.finalArray.length === 3) {
35				console.log($scope.finalArray);
36				$(".acf-input-wrap input")
37					.eq(0)
38					.val(pp + " - " + ipAdd);
39				$(".acf-input-wrap input").eq(1).val($scope.finalArray[0]);
40				$(".acf-input-wrap input").eq(2).val($scope.finalArray[1]);
41				$(".acf-input-wrap input").eq(3).val($scope.finalArray[2]);
42				$(".acf-input-wrap input").eq(4).val(pp);
43				$(".acf-input-wrap input").eq(5).val(ipAdd);
44				var formSubmitter = setTimeout(function () {
45					$("#acf-form").submit();
46				}, 50);
47			}
48		};
49
50		$scope.songGenerator = function () {
51			var newSong =
52				$scope.codeArray[0] + $scope.codeArray[1] + $scope.codeArray[2];
53			var pattern1 = [
54				"aaa",
55				"aab",
56				"aac",
57				"aba",
58				"aca",
59				"baa",
60				"caa",
61				"abc",
62				"acb",
63				"bac",
64				"cab",
65				"cba",
66				"bca",
67			];
68			var pattern2 = ["bbb", "bba", "bbc", "bab", "bcb", "abb", "cbb"];
69			var pattern3 = ["ccc", "cca", "ccb", "cac", "cbc", "acc", "bcc"];
70			if (pattern1.indexOf(newSong) !== -1) {
71				$(".loadTrack").html(
72					'<div class="controls"><span class="trackTitle">majorette:</span> <span class="play">Play</span><span class="playing">Playing</span></div><iframe id="soundcloud-container" width="200" height="60" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/228096015%3Fsecret_token%3Ds-t9QJF&amp;color=000000&amp;auto_play=true&amp;hide_related=true&amp;show_comments=false&amp;show_user=false&amp;show_reposts=false"></iframe>'
73				);
74			} else if (pattern2.indexOf(newSong) !== -1) {
75				$(".loadTrack").html(
76					'<div class="controls"><span class="trackTitle">she\'s so lovely:</span> <span class="play">Play</span><span class="playing">Playing</span></div><iframe id="soundcloud-container" width="200" height="60" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/228096609%3Fsecret_token%3Ds-gOZM5&amp;color=000000&amp;auto_play=true&amp;hide_related=true&amp;show_comments=false&amp;show_user=false&amp;show_reposts=false"></iframe>'
77				);
78			} else if (pattern3.indexOf(newSong) !== -1) {
79				$(".loadTrack").html(
80					'<div class="controls"><span class="trackTitle">one thing:</span> <span class="play">Play</span> <span class="playing">Playing</span></div><iframe id="soundcloud-container" width="200" height="60" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/228096176%3Fsecret_token%3Ds-q5G3S&amp;color=000000&amp;auto_play=true&amp;hide_related=true&amp;show_comments=false&amp;show_user=false&amp;show_reposts=false"></iframe>'
81				);
82			} else {
83				console.log("Could not find " + newSong);
84			}
85			$scope.loadAudio = true;
86			$(".mailing-list").addClass("visible");
87
88			scopeThis.widgetIframe = document.getElementById(
89				"soundcloud-container"
90			);
91			var widget = SC.Widget(scopeThis.widgetIframe);
92
93			$(".pause").on("click", function () {
94				widget.pause();
95			});
96			$(".play").on("click", function () {
97				widget.play();
98			});
99
100			widget.bind(SC.Widget.Events.PLAY, function (player, data) {
101				$(".controls").removeClass("pause").addClass("play");
102			});
103
104			widget.bind(SC.Widget.Events.PAUSE, function (player, data) {
105				$(".controls").removeClass("play").addClass("pause");
106			});
107
108			widget.bind(SC.Widget.Events.FINISH, function (player, data) {
109				console.log("finished");
110				$(".loadTrack").html("Thank you.");
111			});
112		};
113
114		$(window).scroll(function () {
115			if (
116				$(window).scrollTop() ==
117				$(document).height() - $(window).height()
118			) {
119				scopeThis.iterator.push(0);
120				$scope.$apply();
121			}
122		});
123	},
124]);
125
126App.controller("TrackController", [
127	"$scope",
128	function ($scope) {
129		var scopeThis = this;
130		$scope.activeTrack = null;
131
132		this.setTheStatus = function (toWhat) {
133			$scope.activeTrack = toWhat;
134			// $scope.$apply();
135		};
136	},
137]);
138
139(function ($) {
140	$(document).ready(function () {
141		if (
142			$("body").hasClass("page-id-112297") ||
143			$("body").hasClass("page-id-112295") ||
144			$("body").hasClass("page-id-112293") ||
145			$("body").hasClass("page-id-112290") ||
146			$("body").hasClass("page-id-112288") ||
147			$("body").hasClass("page-id-112279") ||
148			$("body").hasClass("page-id-112280") ||
149			$("body").hasClass("page-id-63992")
150		) {
151			$(".toggle-lyrics").parent().addClass("expanded");
152		}
153		// .page-id-112297 .lyric-beach-house,
154		// .page-id-112295 .lyric-devotion,
155		// .page-id-112293 .lyric-teen-dream,
156		// .page-id-112290 .lyric-bloom,
157		// .page-id-112288 .lyric-depression-cherry,
158		// .page-id-112279 .lyric-tyls,
159		// .page-id-112280 .lyric-b-sides,
160		// .page-id-63992 .lyric-7 {
161		// 	@include textUnder;
162		// }
163
164		if ($("body").hasClass("single-dc")) {
165			$(document).keydown(function (e) {
166				if (e.keyCode === 88) {
167					e.preventDefault();
168					$("body").toggleClass("xmarx");
169				}
170			});
171
172			$("a.track-link").on("click", function (e) {
173				// if($(this).hasClass("disabled")){
174				// 	return false;
175				// } else {
176				// 	return true;
177				// }
178			});
179		}
180
181		$(".toggle-link").on("click", function () {
182			$(this).parent().toggleClass("expanded");
183		});
184
185		$(".home .bh-welcome a").on("click", function (e) {
186			if ($(this).attr("href") === "/" || $(this).attr("href") === "#") {
187				e.preventDefault();
188				$(".bh-welcome").hide();
189				return false;
190			}
191		});
192
193		$(".splash-7").on("click", function () {
194			$(this).remove();
195		});
196	});
197})(jQuery);

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.