-
Notifications
You must be signed in to change notification settings - Fork 2
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 #49 from schadocalex/master
Version 4.1.2
- Loading branch information
Showing
63 changed files
with
119 additions
and
107 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Application - La Séparation v4.1.1 | ||
Application - La Séparation v4.1.2 | ||
======= | ||
|
||
Application web et tablette sur la poésie à deux mi-mots |
This file was deleted.
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.
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.
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.
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.
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.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,111 +1,108 @@ | ||
/* | ||
Namespace Event | ||
*/ | ||
var Event = Event || {}; | ||
(function () { | ||
"use strict"; | ||
|
||
var old_touch_move = {x:-1, y:-1}; | ||
Event.events = { | ||
tap : (appOnDevice_real() ? 'click' : 'click'), | ||
touchmove : (appOnDevice_real() ? 'touchmove' : 'mousemove'), | ||
touchend : (appOnDevice_real() ? 'touchend' : 'mouseleave'), | ||
dbltap : (appOnDevice_real() ? 'dblclick' : 'dblclick'), | ||
}; | ||
|
||
Event.getMousePos = function(event) { | ||
// event de createJS 'click' | ||
return { x: event.stageX, y: event.stageY }; | ||
}; | ||
|
||
Event.getMousePosMove = function(event) { | ||
// event classique HTML | ||
if(!appOnDevice_real()) { | ||
return { x: event.clientX, y: event.clientY }; | ||
} | ||
else { | ||
return { | ||
x: event.touches[0].clientX, | ||
y: event.touches[0].clientY | ||
}; | ||
} | ||
}; | ||
|
||
Event.getTouchPos = function(event) { | ||
return Event.getMousePos(event); | ||
}; | ||
|
||
Event.getTouchMove = function(event) { | ||
var new_touch_move = Event.getMousePosMove(event); | ||
|
||
if(old_touch_move.x == -1 && old_touch_move.y == -1) | ||
old_touch_move = new_touch_move; | ||
|
||
var coords = { | ||
x1: old_touch_move.x, | ||
y1: old_touch_move.y, | ||
x2: new_touch_move.x, | ||
y2: new_touch_move.y, | ||
var Event = {}; | ||
|
||
var old_touch_move = {x:-1, y:-1}; | ||
Event.events = { | ||
tap : (appOnDevice_real() ? 'click' : 'click'), | ||
touchmove : (appOnDevice_real() ? 'touchmove' : 'mousemove'), | ||
touchend : (appOnDevice_real() ? 'touchend' : 'mouseleave'), | ||
dbltap : (appOnDevice_real() ? 'dblclick' : 'dblclick'), | ||
}; | ||
|
||
Event.getMousePos = function(event) { | ||
// event de createJS 'click' | ||
return { x: event.stageX, y: event.stageY }; | ||
}; | ||
|
||
Event.getMousePosMove = function(event) { | ||
// event classique HTML | ||
if(!appOnDevice_real()) { | ||
return { x: event.clientX, y: event.clientY }; | ||
} | ||
else { | ||
return { | ||
x: event.touches[0].clientX, | ||
y: event.touches[0].clientY | ||
}; | ||
old_touch_move = new_touch_move; | ||
|
||
return coords; | ||
}; | ||
} | ||
}; | ||
|
||
Event.invertTouchmoveXY = function(coords) { | ||
var temp1 = coords.x1, temp2 = coords.x2; | ||
Event.getTouchPos = function(event) { | ||
return Event.getMousePos(event); | ||
}; | ||
|
||
coords.x1 = coords.y1; | ||
coords.x2 = coords.y2; | ||
coords.y1 = temp1; | ||
coords.y2 = temp2; | ||
|
||
return coords; | ||
}; | ||
|
||
Event.touchmove = function(event) { | ||
event.preventDefault(); | ||
var coords = Event.getTouchMove(event); | ||
Event.getTouchMove = function(event) { | ||
var new_touch_move = Event.getMousePosMove(event); | ||
|
||
Event.cut(coords); | ||
Event.erase(coords); | ||
Event.open(Event.invertTouchmoveXY(coords)); | ||
}; | ||
if(old_touch_move.x == -1 && old_touch_move.y == -1) | ||
old_touch_move = new_touch_move; | ||
|
||
Event.touchend = function(event) { | ||
old_touch_move = {x:-1, y:-1}; | ||
Event.touchMoveAbortAll(Event.cut_obj); | ||
Event.touchMoveAbortAll(Event.erase_obj); | ||
Event.touchMoveAbortAll(Event.open_obj); | ||
var coords = { | ||
x1: old_touch_move.x, | ||
y1: old_touch_move.y, | ||
x2: new_touch_move.x, | ||
y2: new_touch_move.y, | ||
}; | ||
|
||
Event.destroy = function(id, type) { | ||
if(type !== undefined) { | ||
switch(type) { | ||
case 'tap' : Event.destroyTap(id); break; | ||
case 'dbltap' : Event.destroyDbltap(id); break; | ||
case 'cut' : Event.destroyCut(id); break; | ||
case 'erase' : Event.destroyErase(id); break; | ||
case 'open' : Event.destroyOpen(id); break; | ||
default: alert('"' + type + '" inconnu dans Event.destroy()'); | ||
} | ||
} | ||
else { | ||
Event.destroyTap(id); | ||
Event.destroyDbltap(id); | ||
Event.destroyCut(id); | ||
Event.destroyErase(id); | ||
Event.destroyOpen(id); | ||
old_touch_move = new_touch_move; | ||
|
||
return coords; | ||
}; | ||
|
||
Event.invertTouchmoveXY = function(coords) { | ||
var temp1 = coords.x1, temp2 = coords.x2; | ||
|
||
coords.x1 = coords.y1; | ||
coords.x2 = coords.y2; | ||
coords.y1 = temp1; | ||
coords.y2 = temp2; | ||
|
||
return coords; | ||
}; | ||
|
||
Event.touchmove = function(event) { | ||
event.preventDefault(); | ||
var coords = Event.getTouchMove(event); | ||
|
||
Event.cut(coords); | ||
Event.erase(coords); | ||
Event.open(Event.invertTouchmoveXY(coords)); | ||
}; | ||
|
||
Event.touchend = function(event) { | ||
old_touch_move = {x:-1, y:-1}; | ||
Event.touchMoveAbortAll(Event.cut_obj); | ||
Event.touchMoveAbortAll(Event.erase_obj); | ||
Event.touchMoveAbortAll(Event.open_obj); | ||
}; | ||
|
||
Event.destroy = function(id, type) { | ||
if(type !== undefined) { | ||
switch(type) { | ||
case 'tap' : Event.destroyTap(id); break; | ||
case 'dbltap' : Event.destroyDbltap(id); break; | ||
case 'cut' : Event.destroyCut(id); break; | ||
case 'erase' : Event.destroyErase(id); break; | ||
case 'open' : Event.destroyOpen(id); break; | ||
default: alert('"' + type + '" inconnu dans Event.destroy()'); | ||
} | ||
}; | ||
|
||
Event.destroyAll = function() { | ||
Destroy.list(Event.tap_obj); | ||
Destroy.list(Event.dbltap_obj); | ||
Destroy.list(Event.cut_obj); | ||
Destroy.list(Event.erase_obj); | ||
Destroy.list(Event.open_obj); | ||
}; | ||
})(); | ||
} | ||
else { | ||
Event.destroyTap(id); | ||
Event.destroyDbltap(id); | ||
Event.destroyCut(id); | ||
Event.destroyErase(id); | ||
Event.destroyOpen(id); | ||
} | ||
}; | ||
|
||
Event.destroyAll = function() { | ||
Destroy.list(Event.tap_obj); | ||
Destroy.list(Event.dbltap_obj); | ||
Destroy.list(Event.cut_obj); | ||
Destroy.list(Event.erase_obj); | ||
Destroy.list(Event.open_obj); | ||
}; | ||
|
||
scriptLoaded('scripts/libs/separation_toolkit/event/event.js'); |
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