Dispensaries > Michigan > Center Line > Leaf and Bud - Centerline
Rate Us
- 833-532-3283
- Today: 9:00 AM - 9:00 PM
- Monday: 9:00 AM - 9:00 PM
- Tuesday: 9:00 AM - 9:00 PM
- Wednesday: 9:00 AM - 9:00 PM
- Thursday: 9:00 AM - 9:00 PM
- Friday: 9:00 AM - 9:00 PM
- Saturday: 9:00 AM - 9:00 PM
- Sunday: 9:00 AM - 9:00 PM
Retail
At Leaf and Bud, we offer multiple strains of marijuana cultivated to address many health issues including chronic pain, insomnia, depression and more. When you are needing natural relief, Leaf and Bud in Center Line offers high-quality flower, top-shelf edibles and other products refined to heighten your path to healing. Leaf and Bud began with the simple idea to provide heightened and refined cannabis for the discerning user. Cultivated in the states only CropTower indoor growing system, our proprietary cannabis doesnt need harsh pesticides or fungicides to flourishjust pure Michigan water and natural nutrients. The result is high-grade, clean, top quality cannabis
First-Time Customers
25% OFF FIRST TIME VISIT
- Deals
- Live Deals
- Map
- Menu
- Media
- Locations
This dispensary does not have any deals online.
06-27-2024 01:14 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
94fd9897-a3d2-447c-814c-3ef2a20f2a71
06-24-2024 02:54 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
3d33da1f-34a4-470a-89a0-13f03991e6ad
06-08-2024 02:34 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
676535bb-554b-41d7-8ef1-99fa4f25b073
05-17-2024 03:52 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
0c1b1714-5353-46a8-bf20-c3c0a5004729
05-15-2024 03:52 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
0d647e36-ef04-4375-8414-3a54a61579c2
05-13-2024 10:43 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
16e9a779-52a1-4d8a-a457-ddd723f0fe00
05-01-2024 01:12 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
7be78763-b917-4966-bab1-50baad1594df
04-26-2024 02:54 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
b1e258ef-7a6d-4e84-bb0c-cd3100c4f0cc
04-25-2024 02:19 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
7ec86f53-a032-4da4-a968-2f09963aa1fd
04-20-2024 01:39 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
2c6eb06d-a2d7-457b-96cc-85f8588402fd
04-19-2024 01:19 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
6f6ae1c9-626d-4ad5-89f9-873eab775d89
04-18-2024 03:56 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
650a2716-0e05-403a-826c-2b9f691fced7
04-18-2024 03:04 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
002d2ed9-22eb-4eb8-8ef5-5ed0e0e18f76
04-18-2024 02:42 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
64d625d4-7e0d-42f6-b445-bac8e29912a1
03-29-2024 01:55 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
c38286cd-5197-4fbc-aee5-86946e2fd68a
03-28-2024 02:42 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
3d26d800-5970-4da3-9640-dc68bb1ad04d
03-22-2024 01:59 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
593bba69-bfdd-4c0b-9594-7944970d219f
03-16-2024 06:59 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
c52ca19f-4aae-4b0e-aee7-382f633049cf
03-13-2024 07:12 PM
Dear Patrons and Friends, The Best of Detroit readers' poll is your chance to recognize Leaf and Bud as your favorite Medical and Recreational Dispensary, please follow the link bellow and vote. THANK YOU ALL
https://www.hourdetroit.com/best-of-detroit-2024-online-ballot/
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
ddcb510f-e01a-448d-a6a2-bd35adc09f21
03-13-2024 04:33 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
dae65cd5-eeb9-484b-89e1-779a3aa5d7a9
03-07-2024 06:36 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
abea4ab6-d850-4d2c-b8d6-e469a10f8b94
03-01-2024 04:11 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
f38633a0-8d52-4953-a875-388abe6ab777
02-22-2024 04:42 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
f53aea95-64d6-40f5-8ccd-4dc7bd852a5c
02-20-2024 02:11 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
e115456d-6631-4cb6-9fbf-343e8b27edc6
02-17-2024 03:52 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
2e5a18d5-b9a8-4605-9014-9c5708062c77
02-08-2024 02:27 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
57d3f4a4-ca01-49db-bb47-219ee8c2b421
02-01-2024 04:32 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
e3536d93-ff57-42e9-b4b7-1f5285ed4bfd
01-26-2024 03:30 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
eee9b555-f9c4-4870-a8f0-692ffd0ffc69
01-12-2024 02:30 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
f02777a9-6776-4be0-a0bc-4a14660d5637
01-04-2024 03:10 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
810538b8-14cd-448f-b5ab-570b10b34fd2
12-30-2023 02:34 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
0932fa73-75aa-4006-97a8-3e5a66cdad25
12-25-2023 05:59 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
9f8212c6-744a-4354-866d-35f0241cc63d
12-22-2023 02:24 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
7e85d6d8-5382-4143-b790-a7f85bc21cd4
12-20-2023 02:07 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
0a301288-a773-430a-b5d3-6ced0ae4e2b4
11-27-2023 05:10 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
5c1357c1-4352-415c-8c62-8c9e81045efa
11-24-2023 03:32 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
1cf52a01-acda-4052-b34b-be7fc7ef6f6a
11-21-2023 02:31 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
9c4e7d9e-811a-4cd9-a16c-3f33643e1ef3
11-16-2023 02:02 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
c2154917-b52c-4e51-bf92-b80d946dd791
11-12-2023 03:52 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
5b1cefcf-996a-4f15-8223-728c55a23b3b
11-09-2023 06:43 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
6453d7c0-f13a-44b2-b017-2032507b53da
11-04-2023 02:46 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
a6e6321c-396d-45a8-bded-9852afb8deb5
11-02-2023 01:54 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
469854e9-683a-4c0b-a9a2-ce82ee0a2902
10-28-2023 12:48 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
b56354af-e99b-440f-b950-56201a385a8f
10-23-2023 02:10 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
6655b22a-67f6-4241-a2ad-bed774e93c4d
10-13-2023 01:33 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
9688f44d-9939-45a4-b9df-377afc6975fd
10-10-2023 01:01 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
26c83ee8-e9fa-4ea0-815b-0b16713b3616
10-07-2023 02:03 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
ec8dd4c5-90a6-4d8b-b1a0-ecf9dec1f68e
10-05-2023 04:14 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
61f7b65d-d1ad-4756-86a4-578ecbe4a78e
10-04-2023 03:40 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
54a9905e-d5a6-4f49-8f32-4831d4fcce19
09-30-2023 04:52 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
912a7f0f-a7b1-4cd3-9981-9ed1c7894d76
09-25-2023 02:51 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
abf9153a-0a9a-46c4-aac4-212dbe03d268
09-24-2023 03:02 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
08ae65d6-9285-466f-a9d7-f0c975fa068d
09-23-2023 03:33 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
719ad9f5-d186-410d-bd00-00abf613534a
09-22-2023 01:18 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
b0e82db2-7e3f-43dc-b251-b7f55a4ef9e7
09-21-2023 02:15 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
d64c347c-01bf-47ec-ab8b-f156aa8caa48
09-17-2023 02:58 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
2c049ef7-0158-49b5-9023-f6aff380030c
09-15-2023 03:12 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
2adbd981-87ac-4c21-84e4-4e40fb88179f
09-10-2023 03:52 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
87a6f6ac-39f0-47d7-b93f-b3669c339a69
09-07-2023 01:40 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
7906935a-1fea-47ac-9a9a-dabea00c06b1
09-02-2023 02:38 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
22b12d66-5c7c-43e0-adb2-c0f7c5595aec
08-31-2023 02:52 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
41625b04-cce3-409c-85ac-b72f59583739
08-27-2023 02:29 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
875a2995-279a-434f-a163-147739864a73
08-25-2023 02:29 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
dd2d7c39-0a62-40d0-9e25-4ea425691485
08-24-2023 06:07 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
f317bcda-1c54-4968-b484-a5d9c85037bc
08-16-2023 02:01 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
55b38a2b-9b90-4a34-b21a-4d647916582f
08-11-2023 02:01 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
6fba7ad2-de2a-4ab4-a9e3-b5d05f1ae3ea
07-28-2023 06:41 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
afb41cfc-8ee1-443c-acba-25d36dccc6e1
07-19-2023 06:39 PM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
f6f9e4e2-f02b-484d-8de9-e375ef42099f
07-14-2023 12:51 AM
Leaf and Bud - Centerline
833-532-3283
Closes at: 9:00 PM
View Live Deal
9a992917-173c-4b1c-a7cc-ea041cb4af26
RESET MAP
This dispensary does not have it's menu online.
Leaf and Bud - Detroit
Rate Us
833-532-3283
Closes at: 10:00 PM
RetailMedicalDelivery
View Profile
Leaf and Bud - Centerline
Rate Us
23860 Sherwood Ave, Center Line, MI
833-532-3283
Closes at: 9:00 PM
Retail
View Profile
Leaf and Bud - Hazel Park
Rate Us
Closes at: 10:00 PM
RetailDeliveryTextAlerts
View Profile
' + addr[0] + (addr[1].length != 0 ? ', ' + addr[1] : '') + '
' + addr[2] + ', ' + addr[3] + '
' + vendor[4] + '
';content = '
' + vendor[6] + '
' + addr[0] + (addr[1].length != 0 ? ', ' + addr[1] : '') + '
' + addr[2] + ', ' + addr[3] + '
' + vendor[4] + '
';infowindow.close();infowindow.setContent(content);infowindow.open(map, marker);}})(marker, vendor));}function getPointArray (encoded){var len = encoded.length;var index = 0;var array = [];var lat = 0;var lng = 0;if (encoded.indexOf(':') != -1){varpoints = encoded.split(":");for (i in points)array.push(new google.maps.LatLng(Number(points[i].split(',')[1]), Number(points[i].split(',')[0])));return array;}while (index < len) {var b;var shift = 0;var result = 0;do {b = encoded.charCodeAt(index++) - 63;result |= (b & 0x1f) << shift;shift += 5;} while (b >= 0x20);var dlat = ((result & 1) ? ~(result >> 1) : (result >> 1));lat += dlat;shift = 0;result = 0;do {b = encoded.charCodeAt(index++) - 63;result |= (b & 0x1f) << shift;shift += 5;} while (b >= 0x20);var dlng = ((result & 1) ? ~(result >> 1) : (result >> 1));lng += dlng;array.push(new google.maps.LatLng(lat * 1e-5, lng * 1e-5));}return array;}varvendortypes = ['dispensary','growstore','headshop'],packages = ['claim',vendortypes,vendortypes,vendortypes,'premium'];function setIcon(vendorID, name, type, level, sublevel, custom, delivery,doctor, map, ll){variconURL = '/images/mapicons/marker-';if (level == 4 || level == 0)iconURL += packages[level];elseiconURL += packages[level][type - 1];if (level > 0){if (delivery)iconURL += '-delivery';if (doctor)iconURL += '-doctor';}if (level == 4 || custom)iconURL += '-' + vendorID;iconURL += '.png?v1.1';console.log(iconURL);marker = new google.maps.Marker({position: ll,animation: google.maps.Animation.DROP,zIndex: (level * 10) + (9 - sublevel),icon: iconURL,map: map,title: name});console.log(iconURL);if (custom){varicon = new Image();icon.src = iconURL;(function(m, l) {icon.onerror = function() {m.setIcon('/images/mapicons/marker-' + (level == 4 ? 'platinum' : 'gold') + '.png');console.log('replacing: ' + m.getIcon());}}) (marker, level);}return marker;}function initMap(){varmapHolder = $('#responsive_map').parent(),theMap = $('#responsive_map');if ($(theMap).length != 1)return;$('#map-canvas-temp').width(mapHolder.width());$('#map-canvas-temp').height(mapHolder.height());$('#map-canvas-temp').css('top', -1 * (theMap.height() + 100) + 'px');$('#map-canvas-temp').append(theMap.detach());mapCenter = new google.maps.LatLng(42.4696861, -83.0344461);varmapOptions = {center: mapCenter,zoom: 12,mapTypeId: google.maps.MapTypeId.ROADMAP,panControl: false, zoomControl: true, mapTypeControl: false, scaleControl: false, streetViewControl: true, scrollwheel: false,styles: [ { "stylers": [ { "hue": "#2b5eb4" }, { "gamma": 1.58 } ] } ],onComplete: function() {// Resize and re-center the map on window resize eventvar gmap = $("#responsive_map").data('gmap').gmap;window.onresize = function(){google.maps.event.trigger(gmap, 'resize');$("#responsive_map").gMap('fixAfterResize');};}};map = new google.maps.Map(document.getElementById("responsive_map"),mapOptions);marker = setIcon(14469, "Leaf and Bud - Centerline", 1, 3, 10, false, false, false, map, new google.maps.LatLng(42.4696861, -83.0344461));directionsDisplay.setMap(map);google.maps.event.addListenerOnce(map, 'idle', function() {mapCenter = map.getCenter();mapZoom = map.getZoom();mapBounds = (typeof(bounds) != 'undefined' ? bounds : map.getBounds());setTimeout( function () { mapHolder.append(theMap.detach()) }, 1000);});}function getDirections(){varo = $('#starting-address').val(),d = $('#ending-address').val();var request = {origin:o,destination:d,travelMode: google.maps.TravelMode.DRIVING};directionsService.route(request, function(response, status) {if (status == google.maps.DirectionsStatus.OK){directionsDisplay.setDirections(response);var route = response.routes[0].legs[0];vardirections = "
Directions | Distance | Time | |
" + (i + 1) + ". | " + route.steps[i].instructions.replace(/ | " + route.steps[i].distance.text + " | " + route.steps[i].duration.text + " |
Totals: | " + route.distance.text + " | " + route.duration.text + " |
";$('#directions').html(directions);}});}function toggleType(t, e, id){$('#' + t + id).children().last().slideToggle( function() {$(e.target).text($('#' + t + id).children().last().is(':visible') ? 'Hide' : 'Show');});}function setFavoriteVendor(e, vid){checkLogin(arguments)}function setFavoriteVendorCallback(e, vid){$.ajax({url: "/account?cmd=favorite&type=V&vid=" + vid + "&active=" +(e.target.checked ? "Y" : "N"),type: 'GET',success: function(response) {if (response.indexOf("ERROR") != -1){alert("Unable to add vendor to your favorites list.");}else{if ($(e.target).is(':checked'))console.log("adding favorite location");elseconsole.log("removing favorite location");}}});}function setFavoriteProduct(e, pid){checkLogin(arguments)}function setFavoriteProductCallback(e, pid){$.ajax({url: "/account?cmd=favorite&type=P&pid=" + pid + "&active=" +(e.target.checked ? "Y" : "N"),type: 'GET',success: function(response) {if (response.indexOf("ERROR") != -1){alert("Unable to add strain to your favorites list.");}else{if ($(e.target).is(':checked'))console.log("adding favorite strain");elseconsole.log("removing favorite strain");}}});}$('#maptab').click( function(event) {if ($('#google-maps-api').length == 0){vars = document.createElement("script");s.type = "text/javascript";s.id = "google-maps-api";s.src = "https://maps.googleapis.com/maps/api/js?key=AIzaSyBGN0f8cjg6lB2pTCPBbYF5WLmJRphFyd0&libraries=geometry";document.head.appendChild(s);s.onload = function() {directionsService = new google.maps.DirectionsService();directionsDisplay = new google.maps.DirectionsRenderer();infowindow = new google.maps.InfoWindow();if (! google.maps.Polygon.prototype.getBounds){google.maps.Polygon.prototype.getBounds = function() {var bounds = new google.maps.LatLngBounds();var paths = this.getPaths();for (var i = 0; i < paths.getLength(); i++){var path = paths.getAt(i);for (var j = 0; j < path.getLength(); j++)bounds.extend(path.getAt(j));}return bounds; }}initMap();}}});if ($('#responsive_map').length != 0){}
Save money, subscribe.
Get Exclusive Local Cannabis Deals delivered to your phone and email!!
By checking the box and signing up, you consent to receive cannabis-related informational and marketing text messages from - including texts sent using an autodialer - to the wireless number you provided above. Your consent is not required to make a purchase. You also agree to receive promotional emails.
By checking the box and signing up, you agree to the and - which includes an Arbitration Agreement and Class Action Waiver.
To opt-out of texts, reply STOP. To opt-out of emails, use one of the methods described in our Privacy Policy.
Sign Me Up
Text This Deal To Me
Or Present Deal in Store
Price Range
Quantity
Expires
This advertisem*nt is for customer reference only and has no value and is not intended to be exchanged for any product. Leafbuyer (Leafbuyer Technologies, Inc) is not responsible for the content of any advertisem*nt. All advertisem*nts are the sole responsibility of the vendor publishing the advertisem*nt. If an advertisem*nt is not valid, please contact the vendor directly as errors may have been made in the creation of the advertisem*nt. This advertisem*nt is only intended to be viewed by those of legal age and in the state/local area where the product is legally open for sale. Additionally, all state and local laws and restrictions apply to all advertisem*nts. Void where prohibited.
Text This Deal To Me
Or Present Deal in Store
Price Range
Quantity
Expires
legal notice
Text This Deal To Me
Enter your phone number below to receive this deal via text message.
Text Me
Rate us
Please tell us about your experience at
Location:
- 1
- 2
- 3
- 4
- 5
Quality:
- 1
- 2
- 3
- 4
- 5
Price:
- 1
- 2
- 3
- 4
- 5
Service:
- 1
- 2
- 3
- 4
- 5
Knowledge:
- 1
- 2
- 3
- 4
- 5
What, if anything, can we improve to make your experience better?
Did our product meet your expectations? If not, what can we improve?
Other Comments?
Please wait...processing your feedback.
Thank you for rating
Your feedback has been forwarded.
Photo Gallery
Leafbuyer complies with state laws regarding access to marijuana-related products. To continue, you must be 21 years of age or older or hold a valid medical marijuana card?
Are you eligible to continue?
' + Math.ceil(dist) + ' mi
';}catch(e){}}else if (item.type.match(/(city|area|state)/) != null)buttons = '' + (searchType.match(/(all|location)/) ? locBtn : '') + (searchType.match(/(all|deal)/) ? dealBtn : '') + (searchType.match(/(all|menu)/) ? menuBtn : '') + '
';else if (item.type == 'manufacturer'){//if (searchType == 'deal')//buttons = '' + dealBtn + '
';}else if (item.type == 'brand'){if (searchType == 'all')buttons = '' + dealBtn + menuBtn + '
';else if (searchType == 'deal')buttons = '' + dealBtn + '
';else if (searchType == 'menu')buttons = '' + menuBtn + '
';else if (searchType == 'brand');}else if (item.type == 'strain'){if (searchType == 'all'){if (item.active == 'Y')buttons = '' + strainBtn + dealBtn + menuBtn + '
';elsebuttons = '' + dealBtn + menuBtn + '
';}elsebuttons = '' + strainBtn + '
';}return $( "" + item.label + "
" + buttons).appendTo( ul );};$("#location").autocomplete({open: function() {locationItem = null;//$('#search-types').children().hide();/*if (isMobile)$('.ui-autocomplete.ui-menu').width($('.widget').width() - 5);else$('.ui-autocomplete.ui-menu').css('width',$('#search-btn').position().left + $('#search-btn').outerWidth());*/},source: function( request, response ) {varl1,l2,l3;varterm = request.term,reStartsWith = new RegExp( "^" + $.ui.autocomplete.escapeRegex(request.term).replace(/ /g,' *'), "i" ),reContainsNotStarts = new RegExp( ".+" + $.ui.autocomplete.escapeRegex(request.term).replace(/ /g,' *') + ".*", "i" ),reContains = new RegExp( ".*" + $.ui.autocomplete.escapeRegex(request.term).replace(/ /g,' *') + ".*", "i" ),nearme = null;l1 = $.map( statelist, function( item ){if (reContains.test( item.label ))return { label: item.label, value: item.value, type: 'state' }});l2 = $.map( arealist, function( item ){if (reContains.test( item.label ))return { label: item.label, value: item.value, type: 'area' }for (var i = 0; i < areaGroups.length; i++){if (term.match( areaGroups[i][0] )){for (var j = 0; j < areaGroups[i][1].length; j++){if (areaGroups[i][1][j] == item.value)return { label: item.label, value: item.value, type: 'area' }}}}});l3 = $.map( citylist, function( item ){if (reStartsWith.test( item ))return { label: item, type: 'city' }});if (nearme != null)response(nearme.concat(l1).concat(l2).concat(l3));elseresponse(l1.concat(l2).concat(l3));},select: function( e, ui ) {//console.log('selected');$('#location').val(ui.item.label);/*if (ui.item.label == useGPS){$('#source').val("gps");$('#deviceloc').val(deviceLat + ':' + deviceLng);//alert(deviceLat + ':' + deviceLng);}*/locationItem = ui.item;},close: function( e, ui ) {console.log('closed');if (locationItem != null)// item selected from list{//$('#filter').val($('#source').val());$('#source').val(locationItem.type);if (typeof(locationItem.value) !== "undefined")$('#where').val(locationItem.value);else$('#where').val(locationItem.label);if (locationItem.label == useGPS){$('#source').val("gps");$('#deviceloc').val(deviceLat + ':' + deviceLng);//alert(deviceLat + ':' + deviceLng);}else$('#location').val(locationItem.label);$('#last-location').val(locationItem.type + ':' +(typeof(locationItem.value) !== "undefined" ?locationItem.value : locationItem.label));$('#search-btn').click();}console.log(searchItem);console.log(locationItem);},minLength: 3,autoFocus: true}).data( "uiAutocomplete" )._renderItem = function( ul, item ) {return $( "" + item.label + "
").appendTo( ul );};$('#search,#location').focus( function() {lastSearchItem = searchItem;$(this).data("uiAutocomplete").search($(this).val());});$('#search-btn').click( function() {console.log($('#search').val() + " " + $('#source').val());if ($('#location').is(':visible'))// what/where search{if ($('#source').val() == '' || $('#where').val() == ''){$('#location').css('border','solid red 2px');return false;}}else$('#location').css('border','');$('#search-form :input').each(function() {if (typeof($(this).attr('id')) !== 'undefined')localStorage.setItem('searchform.' + $(this).attr('id'),$(this).val());});if ($('#search').val() != ''){if ($('#source').val() != ''){varval = $('#search').val(),tgt = $('#source').val(),type = $('#type').val(),what = $('#what').val(),where = $('#where').val(),filter = $('#filter').val(),root = "/listings",vtype = document.location.pathname.replace(/\/.*?\/([^\/$]+)\/*.*/,'$1').replace(/\//g,'');if (vtype == '')vtype = 'dispensaries';else if (type.match(/(deals|locations|menus)/))vtype = vendorType;ga('send','event','results','search',what.replace(/.*:/,'')+':'+type+':'+tgt+':'+where);if (type != ''){if (type == "locations")root = "/listings";else if (type == "deals")root = "/deals";else if (type == "livedeals")root = "/livedeals";else if (type == "menus")root = "/menus";else if (type == "strains")root = "/strains";else if (type == "products")root = "/products";else if (type == "vendor")root = "/vendor";else if (type == "manufacturer")root = "/manufacturers";}if (what != '' && filter != '')//filter = '&ptype=1&' + filter + '=' + what;filter = '&' + filter + '=' + what;if (tgt == 'gps'){root = document.location.pathname.replace(/\/([^\/]+)\/.*/,'$1');if (root == '/')root = 'listings';$('#where').val(deviceLat + ':' + deviceLng)$('#search-form').attr('action', ('/' + root + '/' + vtype).replace(/\/+/g,'/'));$('#search-form').submit();}else if (tgt == 'city'){//document.location.href = root + "/" + vtype + "/" + where.replace(/(.*), *([A-Z]{2}).*/,'$2/$1').replace(/ +/,'+') + "?resetgps=true" + filter;document.location.href = (root + "/" + vtype + "/" + where.replace(/(.*), *([A-Z]{2}).*/,'$2/$1').replace(/ +/,'+') + "?" + filter).replace(/\?$/,'');return false;}else if (tgt == 'area'){//document.location.href = root + "/" + vtype + "/" + where.replace(/(.*), *([A-Z]{2}).*/,'$2/$1').replace(/ +/,'+') + "?resetgps=true" + filter;document.location.href = (root + "/" + vtype + "/" + where.replace(/(.*), *([A-Z]{2}).*/,'$2/$1').replace(/ +/,'+') + "?" + filter).replace(/\?$/,'');return false;}else if (tgt == 'state'){//document.location.href = root + "/" + vtype + "/" + where + "?resetgps=true" + filter;document.location.href = (root + "/" + vtype + "/" + where + "?" + filter).replace(/\?$/,'');return false;}/*else if (tgt.match(/(vendor|strain)/)){//$('#who').val(what);$('#who').val(val);//$('#what').val('');if (searchItem != null)$('#whoexact').val('true');$('#search-form').submit();}*/else{$('#who').val($('#search').val());$('#search-form').submit();}}else{ga('send','event','results','search','name:'+$('#search').val());$('#search-form').submit();}}});// set any text fields that have "default" attribute to that value if// nothing in the field already$('input[type=text][default],textarea[default]').each(function() {if ($(this).val().length == 0)$(this).val($(this).attr('default'));$(this).focus( function() {if ($(this).val() == $(this).attr('default'))$(this).val('');});$(this).blur( function() {if (trim($(this).val()).length == 0)$(this).val($(this).attr('default'));});});/*$('#login').css({top: $('#nav').position().top + 33,left: $('#nav').position().left + $('#nav').outerWidth() - $('#login').outerWidth(),});$('#city').change( function() {$('#area option:eq(0)').prop('selected', true);$('#resetzone').css('visibility','hidden');});$('#area').change( function() {$('#resetzones').css('visibility','hidden');if ($('#area :selected').val() != 0){cityVal = $('#city').val();$('#city').val('');$('#resetzones').css('visibility','visible');}}).change();*/gallery = $('#photogallery').galleryView({transition_speed: 600,panel_animation: 'slide',show_infobar: false,panel_width:600,panel_height:400,panel_scale: 'fit',frame_width: 60,frame_height: 40,});$('.gv_galleryWrap').css('width','initial').css('height','initial');setInterval(function(){$.get('/keepalive.lbn');}, 15 * 60 * 1000);$('.popupvideo').on("click", function(e) {showOverlay('video');$('#videoplayer').attr('src',$('#' + e.currentTarget.id).attr('data'));});$('.star-rating').each(function() {varul = $(this);$(this).find('li').click( function(e) {varisActive = $(e.currentTarget).hasClass('active');$(ul).find('li').each( function() {$(this).removeClass('active');});if (! isActive)$(e.currentTarget).addClass('active');if ($('input[id=rating' + e.currentTarget.parentElement.id + ']').length != 0)$('input[id=rating' + e.currentTarget.parentElement.id + ']').val($(e.currentTarget).text());});});$('.lbmform').each( function() {if (! $(this).attr('id').match(/lbm.*?-panel/))return;varid = $(this).attr('id').replace(/lbm(.*?)-panel/,'$1');$("textarea[id^='" + id + "'],input[id^='" + id + "']").each( function() {if ($(this).attr('required') != null &&! $(this).hasClass('requiredField')){$(this).addClass('requiredField');}});$(this).on('show', function() {if ($('#lbm' + id + 'form').length)$('#lbm' + id + 'form').css('display','block');if ($('#lbm' + id + 'wait').length)$('#lbm' + id + 'wait').css('display','none');if ($('#lbm' + id + 'ack').length)$('#lbm' + id + 'ack').css('display','none');// Google maps causes an issue with typing in overlay forms when// visible so hide map while form is visibleif (initialized){if (expandedMap && $('#wide-map-holder').length &&$('#wide-map-holder').is(":visible")){$('#wide-map-holder').hide();$('#wide-map-holder').attr('hidden','yes');}else if ($('#map-holder').length &&$('#map-holder').is(":visible")){$('#map-holder').hide();$('#map-holder').attr('hidden','yes');}}});$(this).on('hide', function() {if (initialized){if (expandedMap && $('#wide-map-holder').length &&$('#wide-map-holder').attr('hidden') != null){$('#wide-map-holder').show();$('#wide-map-holder').removeAttr('hidden');}else if ($('#map-holder').length &&$('#map-holder').attr('hidden') != null){$('#map-holder').show();$('#map-holder').removeAttr('hidden');}}});});var videos = document.getElementsByTagName('iframe');for (var i=0; i < videos.length; i++){if ((v = videos[i].getAttribute('data-src')) != null &&v.match(/(vimeo|youtube)/)){videos[i].setAttribute('src', v);}}}function restoreSearch(){if ($('#search-form').length != 1)return;$('#search-form :input').each(function() {if (typeof($(this).attr('id')) !== 'undefined' &&typeof($(this).attr('value') !== 'undefined')){$(this).val(localStorage.getItem('searchform.' + $(this).attr('id')));}});if ($('#type').val() != '')$('#search-' + $('#type').val() + '-btn').show();//if ($('#filter').val() == 'brand')if ($('#filter').val().match(/(strain|brand)/)){$('#search').css({ width: '49%' });$('#location').css({ width: '49%' });/*varfactor = Math.min(400, $('#searchbar').width()) / 400;$('#search').css({//width:'290px',width:'50%',transition:'0s'});*/$('#search-types').addClass('search-types-active');$('#location').show();}else{$('#what').val('');//$('#search').css({ width: '100%' });}if ($('#last-location').val() != '')$('source').val($('#last-location').val().replace(/:.*/,''));$('#search-form').css('opacity','1.0');}restoreSearch();if (typeof(hideOverlay) !== "undefined")hideOverlay();// hide all the panels in the overlayvarinitialized = false;$(window).on('load', function() {showOverlay('age',false);$('#ageOK').click(function() {vardt = new Date();dt.setTime(dt.getTime() + (365 * 24 * 60 * 60 * 1000));$.cookie('ageverified','1', {path:'/', expires:dt, secure:'true'});hideOverlay();});$('#ageRestricted').click(function() {$('#checkAge').toggle();$('#ageRejected').toggle();});addCommonHandlers();initialized = true;});function findClasses(){varclasses = new Array();$('*').each( function() {varc = $.trim($(this).attr('class')).split(/\s+/g);c.forEach(function(item, index) {if (item.length != 0 && item != "undefined" && classes.indexOf(item) == -1)classes.push(item);});});console.log('classes found: [' + classes.sort().toString().replace(/,/g,', ') + ']');}