Permalink
Browse files

Masking Tests

  • Loading branch information...
Benjamin den Boer
Benjamin den Boer committed Nov 6, 2015
1 parent 0e4d9bb commit 858494c7bc4e5c897383bd6081e2b01b46f6e08d
Showing with 22,356 additions and 0 deletions.
  1. +36 −0 test/studio/Masking.framer/.gitignore
  2. +3 −0 test/studio/Masking.framer/app.coffee
  3. +12 −0 test/studio/Masking.framer/framer/coffee-script.js
  4. +8 −0 test/studio/Masking.framer/framer/config.json
  5. +126 −0 test/studio/Masking.framer/framer/framer.init.js
  6. +20,853 −0 test/studio/Masking.framer/framer/framer.js
  7. BIN test/studio/Masking.framer/framer/images/background.png
  8. BIN test/studio/Masking.framer/framer/images/cursor-active.png
  9. BIN test/studio/Masking.framer/framer/images/cursor-active@2x.png
  10. BIN test/studio/Masking.framer/framer/images/cursor.png
  11. BIN test/studio/Masking.framer/framer/images/cursor@2x.png
  12. BIN test/studio/Masking.framer/framer/images/icon-120.png
  13. BIN test/studio/Masking.framer/framer/images/icon-152.png
  14. BIN test/studio/Masking.framer/framer/images/icon-180.png
  15. BIN test/studio/Masking.framer/framer/images/icon-192.png
  16. BIN test/studio/Masking.framer/framer/images/icon-76.png
  17. BIN test/studio/Masking.framer/framer/images/icon-arrow.png
  18. BIN test/studio/Masking.framer/framer/images/icon-arrow@2x.png
  19. BIN test/studio/Masking.framer/framer/images/icon-close.png
  20. BIN test/studio/Masking.framer/framer/images/icon-close@2x.png
  21. BIN test/studio/Masking.framer/framer/images/icon-framer.png
  22. BIN test/studio/Masking.framer/framer/images/icon-framer@2x.png
  23. BIN test/studio/Masking.framer/framer/images/icon-share.png
  24. BIN test/studio/Masking.framer/framer/images/icon-share@2x.png
  25. +196 −0 test/studio/Masking.framer/framer/mirror.css
  26. +59 −0 test/studio/Masking.framer/framer/style.css
  27. +1 −0 test/studio/Masking.framer/framer/version
  28. 0 test/studio/Masking.framer/images/.gitkeep
  29. BIN .../studio/Masking.framer/imported/masks/images/Layer-label-07CA3415-BE33-4CB5-9FA2-F571DEBB9A07.png
  30. BIN .../studio/Masking.framer/imported/masks/images/Layer-label-433500E8-13BC-4AF8-B65C-748ACE493CE5.png
  31. BIN .../studio/Masking.framer/imported/masks/images/Layer-label-7100928B-6344-4BCE-8484-11B32446A96F.png
  32. BIN .../studio/Masking.framer/imported/masks/images/Layer-label-982C4A93-985D-4A14-9FB9-4B5E979C2226.png
  33. BIN .../studio/Masking.framer/imported/masks/images/Layer-label-C6DDFA1D-1780-41FA-99E8-010C7A3E854A.png
  34. BIN .../studio/Masking.framer/imported/masks/images/Layer-label-FB756A0F-D3EF-4529-A91D-A78561E75437.png
  35. BIN test/studio/Masking.framer/imported/masks/images/Layer-mask-03B6E603-BF6F-4E8E-B115-A1100B91E662.png
  36. BIN test/studio/Masking.framer/imported/masks/images/Layer-mask-1BFFD0E6-6E9F-486E-9986-DDBA05275694.png
  37. BIN test/studio/Masking.framer/imported/masks/images/Layer-mask-58AF78AA-BCCB-4B7D-8193-300E36804529.png
  38. BIN test/studio/Masking.framer/imported/masks/images/Layer-mask-78A4DB47-C8A9-49C1-B2E4-169B042EFD8D.png
  39. BIN test/studio/Masking.framer/imported/masks/images/Layer-mask-BE2E06E1-C704-4741-8D34-610CCEFD41B7.png
  40. BIN test/studio/Masking.framer/imported/masks/images/Layer-mask-E295FDF2-8CFA-4D56-B282-EEE877F81682.png
  41. BIN ...tudio/Masking.framer/imported/masks/images/Layer-parentA-14D768D1-2821-4DEE-8C46-16A8A0904F73.png
  42. BIN ...tudio/Masking.framer/imported/masks/images/Layer-parentA-35D27058-CA6A-4E69-A554-199C118C4459.png
  43. BIN ...tudio/Masking.framer/imported/masks/images/Layer-parentA-A0FD1F5A-DF42-4D36-B99C-64AF713A4916.png
  44. BIN ...tudio/Masking.framer/imported/masks/images/Layer-parentA-BEFD9E38-0925-487B-AAFE-2FBAFA397AF3.png
  45. BIN ...tudio/Masking.framer/imported/masks/images/Layer-parentB-7A84AEE4-02A6-4CE9-A301-DC6F3A5CE77D.png
  46. BIN ...tudio/Masking.framer/imported/masks/images/Layer-parentB-CA88FB50-E355-4613-95C6-A5F962F551EC.png
  47. +506 −0 test/studio/Masking.framer/imported/masks/layers.json
  48. +507 −0 test/studio/Masking.framer/imported/masks/layers.json.js
  49. +39 −0 test/studio/Masking.framer/index.html
  50. BIN test/studio/Masking.framer/masks.sketch
  51. +10 −0 test/studio/Masking.framer/modules/myModule.coffee
@@ -0,0 +1,36 @@
# Framer Git Ignore
# General OSX
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# Framer Specific
.temp.html
framer/*.old.*
framer/backup.coffee
framer/backups/*
framer/.*.hash
@@ -0,0 +1,3 @@
# This imports all the layers for "masks" into masksLayers
sketch = Framer.Importer.load "imported/masks"

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,8 @@
{
"updateDelay" : 0.3,
"deviceScale" : -1,
"deviceOrientation" : 0,
"contentScale" : 1,
"sharedPrototype" : 0,
"deviceType" : "fullscreen"
}
@@ -0,0 +1,126 @@
(function() {
function isFileLoadingAllowed() {
return (window.location.protocol.indexOf("file") == -1)
}
function isHomeScreened() {
return ("standalone" in window.navigator) && window.navigator.standalone == true
}
function isCompatibleBrowser() {
return Utils.isWebKit()
}
var alertNode;
function dismissAlert() {
alertNode.parentElement.removeChild(alertNode)
loadProject()
}
function showAlert(html) {
alertNode = document.createElement("div")
alertNode.classList.add("framerAlertBackground")
alertNode.innerHTML = html
document.addEventListener("DOMContentLoaded", function(event) {
document.body.appendChild(alertNode)
})
window.dismissAlert = dismissAlert;
}
function showBrowserAlert() {
var html = ""
html += "<div class='framerAlert'>"
html += "<strong>Error: Not A WebKit Browser</strong>"
html += "Your browser is not supported. <br> Please use Safari or Chrome.<br>"
html += "<a class='btn' href='javascript:void(0)' onclick='dismissAlert();'>Try anyway</a>"
html += "</div>"
showAlert(html)
}
function showFileLoadingAlert() {
var html = ""
html += "<div class='framerAlert'>"
html += "<strong>Error: Local File Restrictions</strong>"
html += "Preview this prototype with Framer Mirror or learn more about "
html += "<a href='https://github.com/koenbok/Framer/wiki/LocalLoading'>file restrictions</a>.<br>"
html += "<a class='btn' href='javascript:void(0)' onclick='dismissAlert();'>Try anyway</a>"
html += "</div>"
showAlert(html)
}
function showHomeScreenAlert() {
link = document.createElement("link");
link.href = "framer/mirror.css"
link.type = "text/css"
link.rel = "stylesheet"
link.media = "screen"
document.addEventListener("DOMContentLoaded", function(event) {
document.getElementsByTagName("head")[0].appendChild(link)
})
var html = ""
html += "<figure class='icon-close' href='javascript:void(0)' onclick='dismissAlert();'></figure>"
html += "<section class='wrapper'>"
html += "<figure class='icon-framer'></figure><h1>Install Prototype</h1>"
html += "<p>Tap <div class='share'><figure class='icon-share'></figure> Share</div>, then choose 'Add to Home Screen'</p> "
html += "<section class='arrow'><figure class='icon-arrow'></figure></section>"
html += "</section>"
showAlert(html)
}
function loadProject() {
CoffeeScript.load("app.coffee")
}
function setDefaultPageTitle() {
// If no title was set we set it to the project folder name so
// you get a nice name on iOS if you bookmark to desktop.
document.addEventListener("DOMContentLoaded", function() {
if (document.title == "") {
if (window.FramerStudioInfo && window.FramerStudioInfo.documentTitle) {
document.title = window.FramerStudioInfo.documentTitle
} else {
document.title = window.location.pathname.replace(/\//g, "")
}
}
})
}
function init() {
if (Utils.isFramerStudio()) {
return
}
setDefaultPageTitle()
if (!isCompatibleBrowser()) {
return showBrowserAlert()
}
if (!isFileLoadingAllowed()) {
return showFileLoadingAlert()
}
// if (Utils.isMobile() && !isHomeScreened()) {
// return showHomeScreenAlert()
// }
loadProject()
}
init()
})()
Oops, something went wrong.

0 comments on commit 858494c

Please sign in to comment.