-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from maydemirx/develop
fixed "using multiple tag filters in same map #10" issue.
- Loading branch information
Showing
866 changed files
with
30,267 additions
and
27 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
$(document).ready(function() { | ||
|
||
/* ===== Affix Sidebar ===== */ | ||
/* Ref: http://getbootstrap.com/javascript/#affix-examples */ | ||
|
||
|
||
$('#doc-menu').affix({ | ||
offset: { | ||
top: ($('#header').outerHeight(true) + $('#doc-header').outerHeight(true)) + 45, | ||
bottom: ($('#footer').outerHeight(true) + $('#promo-block').outerHeight(true)) + 75 | ||
} | ||
}); | ||
|
||
/* Hack related to: https://github.com/twbs/bootstrap/issues/10236 */ | ||
$(window).on('load resize', function() { | ||
$(window).trigger('scroll'); | ||
}); | ||
|
||
/* Activate scrollspy menu */ | ||
$('body').scrollspy({target: '#doc-nav', offset: 100}); | ||
|
||
/* Smooth scrolling */ | ||
$('a.scrollto').on('click', function(e){ | ||
//store hash | ||
var target = this.hash; | ||
e.preventDefault(); | ||
$('body').scrollTo(target, 800, {offset: 0, 'axis':'y'}); | ||
|
||
}); | ||
|
||
|
||
/* ======= jQuery Responsive equal heights plugin ======= */ | ||
/* Ref: https://github.com/liabru/jquery-match-height */ | ||
|
||
$('#cards-wrapper .item-inner').matchHeight(); | ||
$('#showcase .card').matchHeight(); | ||
|
||
/* Bootstrap lightbox */ | ||
/* Ref: http://ashleydw.github.io/lightbox/ */ | ||
|
||
$(document).delegate('*[data-toggle="lightbox"]', 'click', function(e) { | ||
e.preventDefault(); | ||
$(this).ekkoLightbox(); | ||
}); | ||
|
||
|
||
var simpleUsageMap = L.map('simple-usage-map').setView([36.86, 30.75], 12); | ||
var tileLayer = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWF5ZGVtaXJ4IiwiYSI6ImNpbGIweWdmMDAwM3h2cWx6a2QxaTc5YmMifQ.dpkSDE4DYKn6in5ODl_pWg', { | ||
maxZoom: 18, | ||
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' + | ||
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' + | ||
'Imagery © <a href="http://mapbox.com">Mapbox</a>', | ||
id: 'mapbox.streets' | ||
}).addTo(simpleUsageMap); | ||
|
||
|
||
var fastMarker = L.marker([36.8963965256, 30.7087719440], { tags: ['fast'] }).addTo(simpleUsageMap).bindPopup('fast'); | ||
var slowMarker = L.marker([36.8967740487, 30.7107782364], { tags: ['slow'] }).addTo(simpleUsageMap).bindPopup('slow'); | ||
var bothMarker = L.marker([36.8881768737, 30.7024331594], { tags: ['fast', 'slow'] }).addTo(simpleUsageMap).bindPopup('fast & slow'); | ||
|
||
// | ||
|
||
L.control.tagFilterButton({ | ||
data: ['fast', 'slow', 'none'], | ||
icon: '<img src="filter.png">', | ||
filterOnEveryClick: true | ||
}).addTo( simpleUsageMap ); | ||
|
||
|
||
|
||
var osmUrl = 'http://{s}.tile.osm.org/{z}/{x}/{y}.png', | ||
osmAttrib = '© <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors', | ||
osm = L.tileLayer(osmUrl, { | ||
maxZoom: 18, | ||
attribution: osmAttrib | ||
}); | ||
|
||
// initialize the map on the "map" div with a given center and zoom | ||
var releatedUsageMap = L.map('releated-usage-map').setView([50.5, 30.5], 12).addLayer(osm); | ||
|
||
L.marker([50.521, 30.52], { tags: ['tomato', 'active'] }).bindPopup('tomato, active').addTo(releatedUsageMap); | ||
L.marker([50.487, 30.54], { tags: ['tomato', 'ended'] }).bindPopup('tomato, ended').addTo(releatedUsageMap); | ||
L.marker([50.533, 30.5], { tags: ['tomato', 'ended'] }).bindPopup('tomato, ended').addTo(releatedUsageMap); | ||
L.marker([50.54, 30.48], { tags: ['strawberry', 'active'] }).bindPopup('strawberry, active').addTo(releatedUsageMap); | ||
L.marker([50.505, 30.46], { tags: ['strawberry', 'ended'] }).bindPopup('strawberry, ended').addTo(releatedUsageMap); | ||
L.marker([50.5, 30.43], { tags: ['cherry', 'active'] }).bindPopup('cherry, active').addTo(releatedUsageMap); | ||
L.marker([50.48, 30.5], { tags: ['cherry', 'ended'] }).bindPopup('cherry, ended').addTo(releatedUsageMap); | ||
|
||
var statusFilterButton = L.control.tagFilterButton({ | ||
data: ['active', 'ended'], | ||
filterOnEveryClick: true, | ||
icon: '<i class="fa fa-suitcase"></i>', | ||
}).addTo( releatedUsageMap ); | ||
|
||
var foodFilterButton = L.control.tagFilterButton({ | ||
data: ['tomato', 'cherry', 'strawberry'], | ||
filterOnEveryClick: true, | ||
icon: '<i class="fa fa-pagelines"></i>', | ||
}).addTo( releatedUsageMap ); | ||
|
||
foodFilterButton.addToReleated(statusFilterButton); | ||
|
||
jQuery('.easy-button-button').click(function() { | ||
target = jQuery('.easy-button-button').not(this); | ||
target.parent().find('.tag-filter-tags-container').css({ | ||
'display' : 'none', | ||
}); | ||
}); | ||
|
||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.py] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Enforce Unix newlines | ||
*.css text eol=lf | ||
*.html text eol=lf | ||
*.js text eol=lf | ||
*.json text eol=lf | ||
*.less text eol=lf | ||
*.md text eol=lf | ||
*.svg text eol=lf | ||
*.yml text eol=lf | ||
# Don't diff or textually merge source maps | ||
*.map binary | ||
|
||
bootstrap-theme.css linguist-vendored=false | ||
bootstrap.css linguist-vendored=false | ||
bootstrap.js linguist-vendored=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Ignore docs files | ||
_gh_pages | ||
_site | ||
.ruby-version | ||
|
||
# Numerous always-ignore extensions | ||
*.diff | ||
*.err | ||
*.log | ||
*.orig | ||
*.rej | ||
*.swo | ||
*.swp | ||
*.vi | ||
*.zip | ||
*~ | ||
|
||
# OS or Editor folders | ||
._* | ||
.cache | ||
.DS_Store | ||
.idea | ||
.project | ||
.settings | ||
.tmproj | ||
*.esproj | ||
*.sublime-project | ||
*.sublime-workspace | ||
nbproject | ||
Thumbs.db | ||
|
||
# Komodo | ||
.komodotools | ||
*.komodoproject | ||
|
||
# Jekyll metadata | ||
docs/.jekyll-metadata | ||
|
||
# Folders to ignore | ||
bower_components | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
javascript: | ||
config_file: js/.jshintrc | ||
enabled: true | ||
scss: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
language: node_js | ||
git: | ||
depth: 10 | ||
node_js: | ||
- "0.12" | ||
before_install: | ||
- travis_retry sudo pip install -r test-infra/requirements.txt | ||
- rvm install 2.0.0 | ||
- rvm use 2.0.0 --fuzzy | ||
- export GEMDIR=$(rvm gemdir) | ||
- if [ "$TWBS_TEST" = validate-html ]; then echo "ruby=$(basename $GEMDIR) jekyll=$JEKYLL_VERSION rouge=$ROUGE_VERSION" > pseudo_Gemfile.lock; fi | ||
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\"" | ||
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true | ||
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true | ||
- if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then export TWBS_DO_VALIDATOR=0; fi | ||
install: | ||
- npm install -g grunt-cli | ||
- ./test-infra/s3_cache.py download npm-modules | ||
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py download rubygems; fi | ||
after_script: | ||
- if [ "$TRAVIS_REPO_SLUG" != twbs-savage/bootstrap ] && [ "$TWBS_TEST" = core ]; then ./test-infra/s3_cache.py upload npm-modules; fi | ||
- if [ "$TRAVIS_REPO_SLUG" != twbs-savage/bootstrap ] && [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py upload rubygems; fi | ||
env: | ||
global: | ||
- JEKYLL_VERSION="3.0.0" | ||
- ROUGE_VERSION="1.10.1" | ||
- SAUCE_USERNAME="bootstrap" | ||
- secure: "pJkBwnuae9dKU5tEcCqccfS1QQw7/meEcfz63fM7ba7QJNjoA6BaXj08L5Z3Vb5vBmVPwBawxo5Hp0jC0r/Z/O0hGnAmz/Cz09L+cy7dSAZ9x4hvZePSja/UAusaB5ogMoO8l2b773MzgQeSmrLbExr9BWLeqEfjC2hFgdgHLaQ=" | ||
- secure: "gqjqISbxBJK6byFbsmr1AyP1qoWH+rap06A2gI7v72+Tn2PU2nYkIMUkCvhZw6K889jv+LhQ/ybcBxDOXHpNCExCnSgB4dcnmYp+9oeNZb37jSP0rQ+Ib4OTLjzc3/FawE/fUq5kukZTC7porzc/k0qJNLAZRx3YLALmK1GIdUY=" | ||
- secure: "Gghh/e3Gsbj1+4RR9Lh2aR/xJl35HWiHqlPIeSUqE9D7uDCVTAwNce/dGL3Ew7uJPfJ6Pgr70wD3zgu3stw0Zmzayax0hiDtGwcQCxVIER08wqGANK9C2Q7PYJkNTNtiTo6ehKWbdV4Z+/U+TEYyQfpQTDbAFYk/vVpsdjp0Lmc=" | ||
- secure: "RTbRdx4G/2OTLfrZtP1VbRljxEmd6A1F3GqXboeQTldsnAlwpsES65es5CE3ub/rmixLApOY9ot7OPmNixFgC2Y8xOsV7lNCC62QVpmqQEDyGFFQKb3yO6/dmwQxdsCqGfzf9Np6Wh5V22QFvr50ZLKLd7Uhd9oXMDIk/z1MJ3o=" | ||
- secure: "RKWpS+P20b4tG9tawzCMJSmQftoonmC7tJzyGYiHuEM1TcpHALLBcnzKlr/+DiPTfzDJWY4kS8pxfhK4uXOe8OHnhpMNub7LEWtFPePlZIervOJcsOydaQocTKqVVWD6OUubMeQmQ+tZmvmpjoJ1uPPEbFs9ciF7+dv3U5tLUZ0=" | ||
- secure: "XswSKBY0HJ/aO9VOBeWlvGpqSFF/DsJmNKz7o5RkJMJX340qe44J929uUNwwOwlv9YrgptzC2W6l8bpmZQV+p6IYs99SoSA8CCaUfIJaqeU9x/UiT5vIHgqaNax+vFJwvzHLpF5v/ggFqFEKCd54gCDasePLTztHeC4oL104iaQ=" | ||
- secure: "Dv1HX5dzyTh8gA2YsLI+yWEgh9lnGKPpRDDEYYvm42fjBFziUYfcpvA9g8GXQuU9srY3mhfsZkCDHN0x5n1gliOai5TSjmd5Hh+9UyhvNWE+D8HoUpcFXWoQXvy/if2r25m+ZWi3cqgXkkBOcal3W1ePMtU4ln18NcWyIZ0tEFo=" | ||
- secure: "PabpUdG2dE40hHUkMCdxk1e9Ak3BOo0h7Y5/uekosLKOz5N60Xmn/ooyrSkvicLthXO4cfONFhO3/xSVRKQOxlUw4on5i0VuNK+QSqxJk0IDaRSZnTCcC8J7083K0YL+FvMdGQwcYwMY9LiwS8aS014IRkSQjsa+mjo3owP+dOU=" | ||
- secure: "G4/f4PVyVi9o6UbZMqw9YFmDu7cHqe9iymiXYd1RcnPXwhWAePX12m0PWMhUj5itJ180PTEddVip8PNOgBdqyrDxEPKkcgAW2EElVAPIKJXVfvDW64UjQ0H7NS7XvF7iLQUJp/XfmR7NJ7tT393AQdh8SGmuQpJhgYbwIWbES/k=" | ||
matrix: | ||
- TWBS_TEST=core | ||
- TWBS_TEST=validate-html | ||
- TWBS_TEST=sauce-js-unit | ||
matrix: | ||
fast_finish: true | ||
notifications: | ||
slack: heybb:iz4wwosL0N0EdaX1gvgkU0NH | ||
webhooks: | ||
- http://savage1.twbsapps.com/savage/travis |
Oops, something went wrong.