Skip to content

Commit

Permalink
bug fixes, add license
Browse files Browse the repository at this point in the history
  • Loading branch information
therealPaulPlay committed Oct 29, 2024
1 parent 86b7897 commit afa0e03
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
33 changes: 33 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Copyright (c) 2024 Paul Rhomberg | PaulPlay

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

“Commons Clause” License Condition v1.0

The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.
Without limiting other conditions in the License, the grant of rights under the License will not include, and the License does not grant to you, the right to Sell the Software.

For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.

Software: OpenGuessr Education and all associated files

License: MIT

Licensor: Paul Rhomberg | PaulPlay

6 changes: 6 additions & 0 deletions src/lib/components/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@
function handleTouchStart(event) {
if (!interactive) return;
if (event.touches.length === 1) {
isTouching = true;
const touch = event.touches[0];
Expand All @@ -510,6 +511,8 @@
}
function handleTouchMove(event) {
if (!interactive) return;
if (isTouching && event.touches.length === 1) {
event.preventDefault(); // Prevent page scroll
rect = mapContainer.getBoundingClientRect();
Expand Down Expand Up @@ -567,12 +570,15 @@
}
function getTouchDistance(touches) {
if (!interactive) return;
const dx = touches[0].clientX - touches[1].clientX;
const dy = touches[0].clientY - touches[1].clientY;
return Math.sqrt(dx * dx + dy * dy);
}
onMount(() => {
if (!interactive) return;
mapContainer.addEventListener('touchstart', handleTouchStart);
mapContainer.addEventListener('touchmove', handleTouchMove);
mapContainer.addEventListener('touchend', handleTouchEnd);
Expand Down
2 changes: 1 addition & 1 deletion static/json/regions.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"Gambia",
"Ghana",
"Guinea",
"Guinea-Bissau",
"Guinea Bissau",
"Ivory Coast",
"Kenya",
"Lesotho",
Expand Down

0 comments on commit afa0e03

Please sign in to comment.