diff --git a/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91.json b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91.json new file mode 100644 index 0000000..05dcfd1 --- /dev/null +++ b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91.json @@ -0,0 +1 @@ +{"assets":{"E93249E8BE7598D9F0042D3095092486":{"type":"texture","index":4,"assetRequest":{"type":"slide","state":"outgoing","slide":"2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91"},"url":{"web":"assets/E93249E8BE7598D9F0042D3095092486.svg"},"width":1024,"height":768},"68618C61762CDE27FD572F0BE3D24183":{"type":"texture","index":5,"assetRequest":{"type":"slide","state":"incoming","slide":"FA415760-0FDB-4CA5-95B4-9755601A1835"},"url":{"web":"assets/68618C61762CDE27FD572F0BE3D24183.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"68618C61762CDE27FD572F0BE3D24183"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E93249E8BE7598D9F0042D3095092486"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Functions allow you to easily reuse code","targetRectangle":{"y":392,"x":113.9999995231628,"width":623.5199999999999,"height":35.79998540878296}},{"text":"Functions are values too","targetRectangle":{"y":435,"x":113.9999995231628,"width":376.776,"height":77.79998540878296}},{"text":"Functions","targetRectangle":{"y":66,"x":334.92,"width":354.1599999999999,"height":109}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E93249E8BE7598D9F0042D3095092486"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91.jsonp b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91.jsonp new file mode 100644 index 0000000..ce8536c --- /dev/null +++ b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91","json":{"assets":{"E93249E8BE7598D9F0042D3095092486":{"type":"texture","index":4,"assetRequest":{"type":"slide","state":"outgoing","slide":"2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91"},"url":{"web":"assets/E93249E8BE7598D9F0042D3095092486.svg"},"width":1024,"height":768},"68618C61762CDE27FD572F0BE3D24183":{"type":"texture","index":5,"assetRequest":{"type":"slide","state":"incoming","slide":"FA415760-0FDB-4CA5-95B4-9755601A1835"},"url":{"web":"assets/68618C61762CDE27FD572F0BE3D24183.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"68618C61762CDE27FD572F0BE3D24183"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E93249E8BE7598D9F0042D3095092486"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Functions allow you to easily reuse code","targetRectangle":{"y":392,"x":113.9999995231628,"width":623.5199999999999,"height":35.79998540878296}},{"text":"Functions are values too","targetRectangle":{"y":435,"x":113.9999995231628,"width":376.776,"height":77.79998540878296}},{"text":"Functions","targetRectangle":{"y":66,"x":334.92,"width":354.1599999999999,"height":109}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E93249E8BE7598D9F0042D3095092486"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/68618C61762CDE27FD572F0BE3D24183.svg b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/68618C61762CDE27FD572F0BE3D24183.svg new file mode 100644 index 0000000..29913a5 --- /dev/null +++ b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/68618C61762CDE27FD572F0BE3D24183.svg @@ -0,0 +1 @@ +SVG generated by KeynoteSyntaxvar doSomething = function () { console.log('I do something!') } \ No newline at end of file diff --git a/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/68618C61762CDE27FD572F0BE3D24183.svgp b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/68618C61762CDE27FD572F0BE3D24183.svgp new file mode 100644 index 0000000..d701323 --- /dev/null +++ b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/68618C61762CDE27FD572F0BE3D24183.svgp @@ -0,0 +1 @@ +local_svg( {"name":"68618C61762CDE27FD572F0BE3D24183","slide":"2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91","svg":"SVG generated by KeynoteSyntaxvar doSomething = function () { console.log('I do something!') }"} ) \ No newline at end of file diff --git a/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/E93249E8BE7598D9F0042D3095092486.svg b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/E93249E8BE7598D9F0042D3095092486.svg new file mode 100644 index 0000000..dcd8f74 --- /dev/null +++ b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/E93249E8BE7598D9F0042D3095092486.svg @@ -0,0 +1 @@ +SVG generated by KeynoteFunctionsFunctions allow you to easily reuse code Functions are values too \ No newline at end of file diff --git a/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/E93249E8BE7598D9F0042D3095092486.svgp b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/E93249E8BE7598D9F0042D3095092486.svgp new file mode 100644 index 0000000..68f10bc --- /dev/null +++ b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/assets/E93249E8BE7598D9F0042D3095092486.svgp @@ -0,0 +1 @@ +local_svg( {"name":"E93249E8BE7598D9F0042D3095092486","slide":"2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91","svg":"SVG generated by KeynoteFunctionsFunctions allow you to easily reuse code Functions are values too"} ) \ No newline at end of file diff --git a/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/thumbnail.jpeg b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/thumbnail.jpeg new file mode 100644 index 0000000..84012ca Binary files /dev/null and b/12-functions/assets/2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91/thumbnail.jpeg differ diff --git a/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/615F7CD4-E262-41F7-8138-806EC6AB1FAB.json b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/615F7CD4-E262-41F7-8138-806EC6AB1FAB.json new file mode 100644 index 0000000..35e8ac1 --- /dev/null +++ b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/615F7CD4-E262-41F7-8138-806EC6AB1FAB.json @@ -0,0 +1 @@ +{"assets":{"A5E449518A0E6407E5128D18531B7FC0":{"type":"texture","index":1,"assetRequest":{"type":"slide","state":"incoming","slide":"944D9CC6-5F1A-4331-B0BA-A00F63E725B3"},"url":{"web":"assets/A5E449518A0E6407E5128D18531B7FC0.svg"},"width":1024,"height":768},"E2B445733E7D38C94E13DE554D4C1CB8":{"type":"texture","index":0,"assetRequest":{"type":"slide","state":"outgoing","slide":"615F7CD4-E262-41F7-8138-806EC6AB1FAB"},"url":{"web":"assets/E2B445733E7D38C94E13DE554D4C1CB8.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"A5E449518A0E6407E5128D18531B7FC0"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E2B445733E7D38C94E13DE554D4C1CB8"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Functions ☕️","targetRectangle":{"y":329,"x":284.92,"width":454.1599999999999,"height":109.27975390625}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E2B445733E7D38C94E13DE554D4C1CB8"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/615F7CD4-E262-41F7-8138-806EC6AB1FAB.jsonp b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/615F7CD4-E262-41F7-8138-806EC6AB1FAB.jsonp new file mode 100644 index 0000000..864b482 --- /dev/null +++ b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/615F7CD4-E262-41F7-8138-806EC6AB1FAB.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"615F7CD4-E262-41F7-8138-806EC6AB1FAB","json":{"assets":{"A5E449518A0E6407E5128D18531B7FC0":{"type":"texture","index":1,"assetRequest":{"type":"slide","state":"incoming","slide":"944D9CC6-5F1A-4331-B0BA-A00F63E725B3"},"url":{"web":"assets/A5E449518A0E6407E5128D18531B7FC0.svg"},"width":1024,"height":768},"E2B445733E7D38C94E13DE554D4C1CB8":{"type":"texture","index":0,"assetRequest":{"type":"slide","state":"outgoing","slide":"615F7CD4-E262-41F7-8138-806EC6AB1FAB"},"url":{"web":"assets/E2B445733E7D38C94E13DE554D4C1CB8.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"A5E449518A0E6407E5128D18531B7FC0"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E2B445733E7D38C94E13DE554D4C1CB8"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Functions ☕️","targetRectangle":{"y":329,"x":284.92,"width":454.1599999999999,"height":109.27975390625}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E2B445733E7D38C94E13DE554D4C1CB8"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/445D9B3B00937E7A688A4ABF40E0A556.png b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/445D9B3B00937E7A688A4ABF40E0A556.png new file mode 100644 index 0000000..2c47de6 Binary files /dev/null and b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/445D9B3B00937E7A688A4ABF40E0A556.png differ diff --git a/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/A5E449518A0E6407E5128D18531B7FC0.svg b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/A5E449518A0E6407E5128D18531B7FC0.svg new file mode 100644 index 0000000..a85a8be --- /dev/null +++ b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/A5E449518A0E6407E5128D18531B7FC0.svg @@ -0,0 +1 @@ +SVG generated by KeynoteWhat well learnWhat are functions Syntax for creating functions Declaring a function vs invoking a function Passing values to functions Returning values from functions \ No newline at end of file diff --git a/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/A5E449518A0E6407E5128D18531B7FC0.svgp b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/A5E449518A0E6407E5128D18531B7FC0.svgp new file mode 100644 index 0000000..4059c4a --- /dev/null +++ b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/A5E449518A0E6407E5128D18531B7FC0.svgp @@ -0,0 +1 @@ +local_svg( {"name":"A5E449518A0E6407E5128D18531B7FC0","slide":"615F7CD4-E262-41F7-8138-806EC6AB1FAB","svg":"SVG generated by KeynoteWhat well learnWhat are functions Syntax for creating functions Declaring a function vs invoking a function Passing values to functions Returning values from functions"} ) \ No newline at end of file diff --git a/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/E2B445733E7D38C94E13DE554D4C1CB8.svg b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/E2B445733E7D38C94E13DE554D4C1CB8.svg new file mode 100644 index 0000000..f708719 --- /dev/null +++ b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/E2B445733E7D38C94E13DE554D4C1CB8.svg @@ -0,0 +1 @@ +SVG generated by KeynoteFunctions \ No newline at end of file diff --git a/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/E2B445733E7D38C94E13DE554D4C1CB8.svgp b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/E2B445733E7D38C94E13DE554D4C1CB8.svgp new file mode 100644 index 0000000..a9db31e --- /dev/null +++ b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/assets/E2B445733E7D38C94E13DE554D4C1CB8.svgp @@ -0,0 +1 @@ +local_svg( {"name":"E2B445733E7D38C94E13DE554D4C1CB8","slide":"615F7CD4-E262-41F7-8138-806EC6AB1FAB","svg":"SVG generated by KeynoteFunctions "} ) \ No newline at end of file diff --git a/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/thumbnail.jpeg b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/thumbnail.jpeg new file mode 100644 index 0000000..2594e22 Binary files /dev/null and b/12-functions/assets/615F7CD4-E262-41F7-8138-806EC6AB1FAB/thumbnail.jpeg differ diff --git a/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/944D9CC6-5F1A-4331-B0BA-A00F63E725B3.json b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/944D9CC6-5F1A-4331-B0BA-A00F63E725B3.json new file mode 100644 index 0000000..cf0cc6e --- /dev/null +++ b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/944D9CC6-5F1A-4331-B0BA-A00F63E725B3.json @@ -0,0 +1 @@ +{"assets":{"A5E449518A0E6407E5128D18531B7FC0":{"type":"texture","index":2,"assetRequest":{"type":"slide","state":"outgoing","slide":"944D9CC6-5F1A-4331-B0BA-A00F63E725B3"},"url":{"web":"assets/A5E449518A0E6407E5128D18531B7FC0.svg"},"width":1024,"height":768},"E93249E8BE7598D9F0042D3095092486":{"type":"texture","index":3,"assetRequest":{"type":"slide","state":"incoming","slide":"2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91"},"url":{"web":"assets/E93249E8BE7598D9F0042D3095092486.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E93249E8BE7598D9F0042D3095092486"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"A5E449518A0E6407E5128D18531B7FC0"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"What are functions","targetRectangle":{"y":265,"x":113.9999995231628,"width":290.052,"height":35.79998540878296}},{"text":"Syntax for creating functions","targetRectangle":{"y":308,"x":113.9999995231628,"width":440.1,"height":77.79998540878296}},{"text":"Declaring a function vs invoking a function","targetRectangle":{"y":393,"x":113.9999995231628,"width":649.4759999999999,"height":77.79998540878296}},{"text":"Passing values to functions","targetRectangle":{"y":478,"x":113.9999995231628,"width":420.696,"height":77.79998540878296}},{"text":"Returning values from functions","targetRectangle":{"y":563,"x":113.9999995231628,"width":488.0519999999999,"height":77.79998540878296}},{"text":"What we’ll learn","targetRectangle":{"y":66,"x":212.6399999999999,"width":598.7200000000003,"height":109}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"A5E449518A0E6407E5128D18531B7FC0"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/944D9CC6-5F1A-4331-B0BA-A00F63E725B3.jsonp b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/944D9CC6-5F1A-4331-B0BA-A00F63E725B3.jsonp new file mode 100644 index 0000000..fad9887 --- /dev/null +++ b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/944D9CC6-5F1A-4331-B0BA-A00F63E725B3.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"944D9CC6-5F1A-4331-B0BA-A00F63E725B3","json":{"assets":{"A5E449518A0E6407E5128D18531B7FC0":{"type":"texture","index":2,"assetRequest":{"type":"slide","state":"outgoing","slide":"944D9CC6-5F1A-4331-B0BA-A00F63E725B3"},"url":{"web":"assets/A5E449518A0E6407E5128D18531B7FC0.svg"},"width":1024,"height":768},"E93249E8BE7598D9F0042D3095092486":{"type":"texture","index":3,"assetRequest":{"type":"slide","state":"incoming","slide":"2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91"},"url":{"web":"assets/E93249E8BE7598D9F0042D3095092486.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E93249E8BE7598D9F0042D3095092486"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"A5E449518A0E6407E5128D18531B7FC0"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"What are functions","targetRectangle":{"y":265,"x":113.9999995231628,"width":290.052,"height":35.79998540878296}},{"text":"Syntax for creating functions","targetRectangle":{"y":308,"x":113.9999995231628,"width":440.1,"height":77.79998540878296}},{"text":"Declaring a function vs invoking a function","targetRectangle":{"y":393,"x":113.9999995231628,"width":649.4759999999999,"height":77.79998540878296}},{"text":"Passing values to functions","targetRectangle":{"y":478,"x":113.9999995231628,"width":420.696,"height":77.79998540878296}},{"text":"Returning values from functions","targetRectangle":{"y":563,"x":113.9999995231628,"width":488.0519999999999,"height":77.79998540878296}},{"text":"What we’ll learn","targetRectangle":{"y":66,"x":212.6399999999999,"width":598.7200000000003,"height":109}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"A5E449518A0E6407E5128D18531B7FC0"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/A5E449518A0E6407E5128D18531B7FC0.svg b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/A5E449518A0E6407E5128D18531B7FC0.svg new file mode 100644 index 0000000..a85a8be --- /dev/null +++ b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/A5E449518A0E6407E5128D18531B7FC0.svg @@ -0,0 +1 @@ +SVG generated by KeynoteWhat well learnWhat are functions Syntax for creating functions Declaring a function vs invoking a function Passing values to functions Returning values from functions \ No newline at end of file diff --git a/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/A5E449518A0E6407E5128D18531B7FC0.svgp b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/A5E449518A0E6407E5128D18531B7FC0.svgp new file mode 100644 index 0000000..810385f --- /dev/null +++ b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/A5E449518A0E6407E5128D18531B7FC0.svgp @@ -0,0 +1 @@ +local_svg( {"name":"A5E449518A0E6407E5128D18531B7FC0","slide":"944D9CC6-5F1A-4331-B0BA-A00F63E725B3","svg":"SVG generated by KeynoteWhat well learnWhat are functions Syntax for creating functions Declaring a function vs invoking a function Passing values to functions Returning values from functions"} ) \ No newline at end of file diff --git a/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/E93249E8BE7598D9F0042D3095092486.svg b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/E93249E8BE7598D9F0042D3095092486.svg new file mode 100644 index 0000000..dcd8f74 --- /dev/null +++ b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/E93249E8BE7598D9F0042D3095092486.svg @@ -0,0 +1 @@ +SVG generated by KeynoteFunctionsFunctions allow you to easily reuse code Functions are values too \ No newline at end of file diff --git a/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/E93249E8BE7598D9F0042D3095092486.svgp b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/E93249E8BE7598D9F0042D3095092486.svgp new file mode 100644 index 0000000..ec852c2 --- /dev/null +++ b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/assets/E93249E8BE7598D9F0042D3095092486.svgp @@ -0,0 +1 @@ +local_svg( {"name":"E93249E8BE7598D9F0042D3095092486","slide":"944D9CC6-5F1A-4331-B0BA-A00F63E725B3","svg":"SVG generated by KeynoteFunctionsFunctions allow you to easily reuse code Functions are values too"} ) \ No newline at end of file diff --git a/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/thumbnail.jpeg b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/thumbnail.jpeg new file mode 100644 index 0000000..9fa932d Binary files /dev/null and b/12-functions/assets/944D9CC6-5F1A-4331-B0BA-A00F63E725B3/thumbnail.jpeg differ diff --git a/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/A66E77D7-EA29-405A-9456-11EC76B04968.json b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/A66E77D7-EA29-405A-9456-11EC76B04968.json new file mode 100644 index 0000000..4111267 --- /dev/null +++ b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/A66E77D7-EA29-405A-9456-11EC76B04968.json @@ -0,0 +1 @@ +{"assets":{"313F8F60ADAFAC650E0FCF54DABCF72B":{"type":"texture","index":9,"assetRequest":{"type":"slide","state":"incoming","slide":"D281EBB7-86B3-4E15-8BBD-C60CC41E4318"},"url":{"web":"assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg"},"width":1024,"height":768},"F63ACC226EED23F82DBE22614B37C596":{"type":"texture","index":8,"assetRequest":{"type":"slide","state":"outgoing","slide":"A66E77D7-EA29-405A-9456-11EC76B04968"},"url":{"web":"assets/F63ACC226EED23F82DBE22614B37C596.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"313F8F60ADAFAC650E0FCF54DABCF72B"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"F63ACC226EED23F82DBE22614B37C596"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"doSomething()","targetRectangle":{"y":427,"x":79,"width":280.8,"height":51}},{"text":"Syntax","targetRectangle":{"y":66,"x":388.64,"width":246.72,"height":109}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"F63ACC226EED23F82DBE22614B37C596"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/A66E77D7-EA29-405A-9456-11EC76B04968.jsonp b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/A66E77D7-EA29-405A-9456-11EC76B04968.jsonp new file mode 100644 index 0000000..577cad4 --- /dev/null +++ b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/A66E77D7-EA29-405A-9456-11EC76B04968.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"A66E77D7-EA29-405A-9456-11EC76B04968","json":{"assets":{"313F8F60ADAFAC650E0FCF54DABCF72B":{"type":"texture","index":9,"assetRequest":{"type":"slide","state":"incoming","slide":"D281EBB7-86B3-4E15-8BBD-C60CC41E4318"},"url":{"web":"assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg"},"width":1024,"height":768},"F63ACC226EED23F82DBE22614B37C596":{"type":"texture","index":8,"assetRequest":{"type":"slide","state":"outgoing","slide":"A66E77D7-EA29-405A-9456-11EC76B04968"},"url":{"web":"assets/F63ACC226EED23F82DBE22614B37C596.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"313F8F60ADAFAC650E0FCF54DABCF72B"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"F63ACC226EED23F82DBE22614B37C596"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"doSomething()","targetRectangle":{"y":427,"x":79,"width":280.8,"height":51}},{"text":"Syntax","targetRectangle":{"y":66,"x":388.64,"width":246.72,"height":109}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"F63ACC226EED23F82DBE22614B37C596"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg new file mode 100644 index 0000000..44bf497 --- /dev/null +++ b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg @@ -0,0 +1 @@ +SVG generated by KeynoteSyntaxfunction doSomething() { console.log('I do something!') } \ No newline at end of file diff --git a/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svgp b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svgp new file mode 100644 index 0000000..210c3eb --- /dev/null +++ b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svgp @@ -0,0 +1 @@ +local_svg( {"name":"313F8F60ADAFAC650E0FCF54DABCF72B","slide":"A66E77D7-EA29-405A-9456-11EC76B04968","svg":"SVG generated by KeynoteSyntaxfunction doSomething() { console.log('I do something!') }"} ) \ No newline at end of file diff --git a/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/F63ACC226EED23F82DBE22614B37C596.svg b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/F63ACC226EED23F82DBE22614B37C596.svg new file mode 100644 index 0000000..4800758 --- /dev/null +++ b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/F63ACC226EED23F82DBE22614B37C596.svg @@ -0,0 +1 @@ +SVG generated by KeynoteSyntaxdoSomething() \ No newline at end of file diff --git a/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/F63ACC226EED23F82DBE22614B37C596.svgp b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/F63ACC226EED23F82DBE22614B37C596.svgp new file mode 100644 index 0000000..dcdb739 --- /dev/null +++ b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/assets/F63ACC226EED23F82DBE22614B37C596.svgp @@ -0,0 +1 @@ +local_svg( {"name":"F63ACC226EED23F82DBE22614B37C596","slide":"A66E77D7-EA29-405A-9456-11EC76B04968","svg":"SVG generated by KeynoteSyntaxdoSomething()"} ) \ No newline at end of file diff --git a/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/thumbnail.jpeg b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/thumbnail.jpeg new file mode 100644 index 0000000..fa8061c Binary files /dev/null and b/12-functions/assets/A66E77D7-EA29-405A-9456-11EC76B04968/thumbnail.jpeg differ diff --git a/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/BCD42550-1889-4B98-AD6A-D9CFFDC598A4.json b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/BCD42550-1889-4B98-AD6A-D9CFFDC598A4.json new file mode 100644 index 0000000..bfb8d5c --- /dev/null +++ b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/BCD42550-1889-4B98-AD6A-D9CFFDC598A4.json @@ -0,0 +1 @@ +{"assets":{"E7BA93DD292337D17E120445FC5E52DB":{"type":"texture","index":15,"assetRequest":{"type":"slide","state":"incoming","slide":"D27959DF-3B01-4006-B455-D9B647C34759"},"url":{"web":"assets/E7BA93DD292337D17E120445FC5E52DB.svg"},"width":1024,"height":768},"2ADD6CE86FBD086163FF55ED441A5943":{"type":"texture","index":14,"assetRequest":{"type":"slide","state":"outgoing","slide":"BCD42550-1889-4B98-AD6A-D9CFFDC598A4"},"url":{"web":"assets/2ADD6CE86FBD086163FF55ED441A5943.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E7BA93DD292337D17E120445FC5E52DB"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"2ADD6CE86FBD086163FF55ED441A5943"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Event Handlers","targetRectangle":{"y":66,"x":231.52,"width":560.96,"height":109}},{"text":"function changeBackground(color) {","targetRectangle":{"y":367,"x":79,"width":612,"height":43}},{"text":" document.querySelector(‘body')","targetRectangle":{"y":410,"x":79,"width":594,"height":43}},{"text":" .style.background = color","targetRectangle":{"y":453,"x":79,"width":558,"height":43}},{"text":"}","targetRectangle":{"y":496,"x":79,"width":18,"height":43}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"2ADD6CE86FBD086163FF55ED441A5943"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/BCD42550-1889-4B98-AD6A-D9CFFDC598A4.jsonp b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/BCD42550-1889-4B98-AD6A-D9CFFDC598A4.jsonp new file mode 100644 index 0000000..8a82fdb --- /dev/null +++ b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/BCD42550-1889-4B98-AD6A-D9CFFDC598A4.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"BCD42550-1889-4B98-AD6A-D9CFFDC598A4","json":{"assets":{"E7BA93DD292337D17E120445FC5E52DB":{"type":"texture","index":15,"assetRequest":{"type":"slide","state":"incoming","slide":"D27959DF-3B01-4006-B455-D9B647C34759"},"url":{"web":"assets/E7BA93DD292337D17E120445FC5E52DB.svg"},"width":1024,"height":768},"2ADD6CE86FBD086163FF55ED441A5943":{"type":"texture","index":14,"assetRequest":{"type":"slide","state":"outgoing","slide":"BCD42550-1889-4B98-AD6A-D9CFFDC598A4"},"url":{"web":"assets/2ADD6CE86FBD086163FF55ED441A5943.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E7BA93DD292337D17E120445FC5E52DB"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"2ADD6CE86FBD086163FF55ED441A5943"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Event Handlers","targetRectangle":{"y":66,"x":231.52,"width":560.96,"height":109}},{"text":"function changeBackground(color) {","targetRectangle":{"y":367,"x":79,"width":612,"height":43}},{"text":" document.querySelector(‘body')","targetRectangle":{"y":410,"x":79,"width":594,"height":43}},{"text":" .style.background = color","targetRectangle":{"y":453,"x":79,"width":558,"height":43}},{"text":"}","targetRectangle":{"y":496,"x":79,"width":18,"height":43}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"2ADD6CE86FBD086163FF55ED441A5943"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/2ADD6CE86FBD086163FF55ED441A5943.svg b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/2ADD6CE86FBD086163FF55ED441A5943.svg new file mode 100644 index 0000000..641ff8e --- /dev/null +++ b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/2ADD6CE86FBD086163FF55ED441A5943.svg @@ -0,0 +1 @@ +SVG generated by KeynoteEvent Handlersfunction changeBackground(color) { document.querySelector(body') .style.background = color } \ No newline at end of file diff --git a/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/2ADD6CE86FBD086163FF55ED441A5943.svgp b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/2ADD6CE86FBD086163FF55ED441A5943.svgp new file mode 100644 index 0000000..83268e2 --- /dev/null +++ b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/2ADD6CE86FBD086163FF55ED441A5943.svgp @@ -0,0 +1 @@ +local_svg( {"name":"2ADD6CE86FBD086163FF55ED441A5943","slide":"BCD42550-1889-4B98-AD6A-D9CFFDC598A4","svg":"SVG generated by KeynoteEvent Handlersfunction changeBackground(color) { document.querySelector(body') .style.background = color }"} ) \ No newline at end of file diff --git a/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/E7BA93DD292337D17E120445FC5E52DB.svg b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/E7BA93DD292337D17E120445FC5E52DB.svg new file mode 100644 index 0000000..37e990b --- /dev/null +++ b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/E7BA93DD292337D17E120445FC5E52DB.svg @@ -0,0 +1 @@ +SVG generated by KeynoteEvent Handlersfunction changeBackground(color) { document.querySelector(body') .style.background = color } document.querySelector(#button') .addEventListener('click', changeBackground) \ No newline at end of file diff --git a/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/E7BA93DD292337D17E120445FC5E52DB.svgp b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/E7BA93DD292337D17E120445FC5E52DB.svgp new file mode 100644 index 0000000..f59660e --- /dev/null +++ b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/assets/E7BA93DD292337D17E120445FC5E52DB.svgp @@ -0,0 +1 @@ +local_svg( {"name":"E7BA93DD292337D17E120445FC5E52DB","slide":"BCD42550-1889-4B98-AD6A-D9CFFDC598A4","svg":"SVG generated by KeynoteEvent Handlersfunction changeBackground(color) { document.querySelector(body') .style.background = color } document.querySelector(#button') .addEventListener('click', changeBackground)"} ) \ No newline at end of file diff --git a/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/thumbnail.jpeg b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/thumbnail.jpeg new file mode 100644 index 0000000..630b920 Binary files /dev/null and b/12-functions/assets/BCD42550-1889-4B98-AD6A-D9CFFDC598A4/thumbnail.jpeg differ diff --git a/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/D27959DF-3B01-4006-B455-D9B647C34759.json b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/D27959DF-3B01-4006-B455-D9B647C34759.json new file mode 100644 index 0000000..9a1798c --- /dev/null +++ b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/D27959DF-3B01-4006-B455-D9B647C34759.json @@ -0,0 +1 @@ +{"assets":{"E7BA93DD292337D17E120445FC5E52DB":{"type":"texture","index":16,"assetRequest":{"type":"slide","state":"outgoing","slide":"D27959DF-3B01-4006-B455-D9B647C34759"},"url":{"web":"assets/E7BA93DD292337D17E120445FC5E52DB.svg"},"width":1024,"height":768},"D54EA234E742C820B0A832BA23CE84F0":{"type":"texture","index":17,"assetRequest":{"type":"slide","state":"incoming","slide":"DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4"},"url":{"web":"assets/D54EA234E742C820B0A832BA23CE84F0.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"D54EA234E742C820B0A832BA23CE84F0"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E7BA93DD292337D17E120445FC5E52DB"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Event Handlers","targetRectangle":{"y":66,"x":231.52,"width":560.96,"height":109}},{"text":"function changeBackground(color) {","targetRectangle":{"y":302,"x":79,"width":612,"height":43}},{"text":" document.querySelector(‘body')","targetRectangle":{"y":345,"x":79,"width":594,"height":43}},{"text":" .style.background = color","targetRectangle":{"y":388,"x":79,"width":558,"height":43}},{"text":"}","targetRectangle":{"y":431,"x":79,"width":18,"height":43}},{"text":"document.querySelector(‘#button')","targetRectangle":{"y":517,"x":79,"width":594,"height":43}},{"text":" .addEventListener('click', changeBackground)","targetRectangle":{"y":560,"x":79,"width":828,"height":43}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E7BA93DD292337D17E120445FC5E52DB"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/D27959DF-3B01-4006-B455-D9B647C34759.jsonp b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/D27959DF-3B01-4006-B455-D9B647C34759.jsonp new file mode 100644 index 0000000..cc295e6 --- /dev/null +++ b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/D27959DF-3B01-4006-B455-D9B647C34759.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"D27959DF-3B01-4006-B455-D9B647C34759","json":{"assets":{"E7BA93DD292337D17E120445FC5E52DB":{"type":"texture","index":16,"assetRequest":{"type":"slide","state":"outgoing","slide":"D27959DF-3B01-4006-B455-D9B647C34759"},"url":{"web":"assets/E7BA93DD292337D17E120445FC5E52DB.svg"},"width":1024,"height":768},"D54EA234E742C820B0A832BA23CE84F0":{"type":"texture","index":17,"assetRequest":{"type":"slide","state":"incoming","slide":"DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4"},"url":{"web":"assets/D54EA234E742C820B0A832BA23CE84F0.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"D54EA234E742C820B0A832BA23CE84F0"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E7BA93DD292337D17E120445FC5E52DB"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Event Handlers","targetRectangle":{"y":66,"x":231.52,"width":560.96,"height":109}},{"text":"function changeBackground(color) {","targetRectangle":{"y":302,"x":79,"width":612,"height":43}},{"text":" document.querySelector(‘body')","targetRectangle":{"y":345,"x":79,"width":594,"height":43}},{"text":" .style.background = color","targetRectangle":{"y":388,"x":79,"width":558,"height":43}},{"text":"}","targetRectangle":{"y":431,"x":79,"width":18,"height":43}},{"text":"document.querySelector(‘#button')","targetRectangle":{"y":517,"x":79,"width":594,"height":43}},{"text":" .addEventListener('click', changeBackground)","targetRectangle":{"y":560,"x":79,"width":828,"height":43}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"E7BA93DD292337D17E120445FC5E52DB"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/D54EA234E742C820B0A832BA23CE84F0.svg b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/D54EA234E742C820B0A832BA23CE84F0.svg new file mode 100644 index 0000000..096adc6 --- /dev/null +++ b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/D54EA234E742C820B0A832BA23CE84F0.svg @@ -0,0 +1 @@ +SVG generated by KeynoteEvent HandlersEvent Listeners https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener List of events https://developer.mozilla.org/en-US/docs/Web/Events \ No newline at end of file diff --git a/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/D54EA234E742C820B0A832BA23CE84F0.svgp b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/D54EA234E742C820B0A832BA23CE84F0.svgp new file mode 100644 index 0000000..b23df2b --- /dev/null +++ b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/D54EA234E742C820B0A832BA23CE84F0.svgp @@ -0,0 +1 @@ +local_svg( {"name":"D54EA234E742C820B0A832BA23CE84F0","slide":"D27959DF-3B01-4006-B455-D9B647C34759","svg":"SVG generated by KeynoteEvent HandlersEvent Listeners https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener List of events https://developer.mozilla.org/en-US/docs/Web/Events "} ) \ No newline at end of file diff --git a/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/E7BA93DD292337D17E120445FC5E52DB.svg b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/E7BA93DD292337D17E120445FC5E52DB.svg new file mode 100644 index 0000000..37e990b --- /dev/null +++ b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/E7BA93DD292337D17E120445FC5E52DB.svg @@ -0,0 +1 @@ +SVG generated by KeynoteEvent Handlersfunction changeBackground(color) { document.querySelector(body') .style.background = color } document.querySelector(#button') .addEventListener('click', changeBackground) \ No newline at end of file diff --git a/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/E7BA93DD292337D17E120445FC5E52DB.svgp b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/E7BA93DD292337D17E120445FC5E52DB.svgp new file mode 100644 index 0000000..12a761f --- /dev/null +++ b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/assets/E7BA93DD292337D17E120445FC5E52DB.svgp @@ -0,0 +1 @@ +local_svg( {"name":"E7BA93DD292337D17E120445FC5E52DB","slide":"D27959DF-3B01-4006-B455-D9B647C34759","svg":"SVG generated by KeynoteEvent Handlersfunction changeBackground(color) { document.querySelector(body') .style.background = color } document.querySelector(#button') .addEventListener('click', changeBackground)"} ) \ No newline at end of file diff --git a/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/thumbnail.jpeg b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/thumbnail.jpeg new file mode 100644 index 0000000..fda9a4a Binary files /dev/null and b/12-functions/assets/D27959DF-3B01-4006-B455-D9B647C34759/thumbnail.jpeg differ diff --git a/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/D281EBB7-86B3-4E15-8BBD-C60CC41E4318.json b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/D281EBB7-86B3-4E15-8BBD-C60CC41E4318.json new file mode 100644 index 0000000..b86f7a8 --- /dev/null +++ b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/D281EBB7-86B3-4E15-8BBD-C60CC41E4318.json @@ -0,0 +1 @@ +{"assets":{"313F8F60ADAFAC650E0FCF54DABCF72B":{"type":"texture","index":10,"assetRequest":{"type":"slide","state":"outgoing","slide":"D281EBB7-86B3-4E15-8BBD-C60CC41E4318"},"url":{"web":"assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg"},"width":1024,"height":768},"1D26268DDCD87298321F6EA8FB70B0B2":{"type":"texture","index":11,"assetRequest":{"type":"slide","state":"incoming","slide":"FE46E5E1-675B-4AC9-BA6F-23A021234F1A"},"url":{"web":"assets/1D26268DDCD87298321F6EA8FB70B0B2.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"1D26268DDCD87298321F6EA8FB70B0B2"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"313F8F60ADAFAC650E0FCF54DABCF72B"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"function doSomething() {","targetRectangle":{"y":376,"x":79,"width":518.4000000000001,"height":51}},{"text":" console.log('I do something!')","targetRectangle":{"y":427,"x":79,"width":691.2000000000002,"height":51}},{"text":"}","targetRectangle":{"y":478,"x":79,"width":21.59999999999999,"height":51}},{"text":"Syntax","targetRectangle":{"y":66,"x":388.64,"width":246.72,"height":109}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"313F8F60ADAFAC650E0FCF54DABCF72B"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/D281EBB7-86B3-4E15-8BBD-C60CC41E4318.jsonp b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/D281EBB7-86B3-4E15-8BBD-C60CC41E4318.jsonp new file mode 100644 index 0000000..9a9098a --- /dev/null +++ b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/D281EBB7-86B3-4E15-8BBD-C60CC41E4318.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"D281EBB7-86B3-4E15-8BBD-C60CC41E4318","json":{"assets":{"313F8F60ADAFAC650E0FCF54DABCF72B":{"type":"texture","index":10,"assetRequest":{"type":"slide","state":"outgoing","slide":"D281EBB7-86B3-4E15-8BBD-C60CC41E4318"},"url":{"web":"assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg"},"width":1024,"height":768},"1D26268DDCD87298321F6EA8FB70B0B2":{"type":"texture","index":11,"assetRequest":{"type":"slide","state":"incoming","slide":"FE46E5E1-675B-4AC9-BA6F-23A021234F1A"},"url":{"web":"assets/1D26268DDCD87298321F6EA8FB70B0B2.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"1D26268DDCD87298321F6EA8FB70B0B2"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"313F8F60ADAFAC650E0FCF54DABCF72B"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"function doSomething() {","targetRectangle":{"y":376,"x":79,"width":518.4000000000001,"height":51}},{"text":" console.log('I do something!')","targetRectangle":{"y":427,"x":79,"width":691.2000000000002,"height":51}},{"text":"}","targetRectangle":{"y":478,"x":79,"width":21.59999999999999,"height":51}},{"text":"Syntax","targetRectangle":{"y":66,"x":388.64,"width":246.72,"height":109}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"313F8F60ADAFAC650E0FCF54DABCF72B"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/1D26268DDCD87298321F6EA8FB70B0B2.svg b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/1D26268DDCD87298321F6EA8FB70B0B2.svg new file mode 100644 index 0000000..b684b16 --- /dev/null +++ b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/1D26268DDCD87298321F6EA8FB70B0B2.svg @@ -0,0 +1 @@ +SVG generated by KeynotePassing argumentsfunction sayHello(name) { console.log(Hello + name + !) } \ No newline at end of file diff --git a/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/1D26268DDCD87298321F6EA8FB70B0B2.svgp b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/1D26268DDCD87298321F6EA8FB70B0B2.svgp new file mode 100644 index 0000000..522eb38 --- /dev/null +++ b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/1D26268DDCD87298321F6EA8FB70B0B2.svgp @@ -0,0 +1 @@ +local_svg( {"name":"1D26268DDCD87298321F6EA8FB70B0B2","slide":"D281EBB7-86B3-4E15-8BBD-C60CC41E4318","svg":"SVG generated by KeynotePassing argumentsfunction sayHello(name) { console.log(Hello + name + !) }"} ) \ No newline at end of file diff --git a/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg new file mode 100644 index 0000000..44bf497 --- /dev/null +++ b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svg @@ -0,0 +1 @@ +SVG generated by KeynoteSyntaxfunction doSomething() { console.log('I do something!') } \ No newline at end of file diff --git a/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svgp b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svgp new file mode 100644 index 0000000..922be37 --- /dev/null +++ b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/assets/313F8F60ADAFAC650E0FCF54DABCF72B.svgp @@ -0,0 +1 @@ +local_svg( {"name":"313F8F60ADAFAC650E0FCF54DABCF72B","slide":"D281EBB7-86B3-4E15-8BBD-C60CC41E4318","svg":"SVG generated by KeynoteSyntaxfunction doSomething() { console.log('I do something!') }"} ) \ No newline at end of file diff --git a/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/thumbnail.jpeg b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/thumbnail.jpeg new file mode 100644 index 0000000..18957e4 Binary files /dev/null and b/12-functions/assets/D281EBB7-86B3-4E15-8BBD-C60CC41E4318/thumbnail.jpeg differ diff --git a/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4.json b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4.json new file mode 100644 index 0000000..081bc5a --- /dev/null +++ b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4.json @@ -0,0 +1 @@ +{"assets":{"5B0DAB8BE0275C3FF0A58F1077932338":{"type":"texture","index":19,"assetRequest":{"type":"slide","state":"incoming","slide":"DDF74C93-8902-4DB3-B831-4F6AFED8B345"},"url":{"web":"assets/5B0DAB8BE0275C3FF0A58F1077932338.svg"},"width":1024,"height":768},"D54EA234E742C820B0A832BA23CE84F0":{"type":"texture","index":18,"assetRequest":{"type":"slide","state":"outgoing","slide":"DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4"},"url":{"web":"assets/D54EA234E742C820B0A832BA23CE84F0.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"5B0DAB8BE0275C3FF0A58F1077932338"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"D54EA234E742C820B0A832BA23CE84F0"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[{"url":"https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener","targetRectangle":{"y":324,"x":79,"width":810,"height":86}},{"url":"https://developer.mozilla.org/en-US/docs/Web/Events","targetRectangle":{"y":539,"x":79,"width":810,"height":86}}],"accessibility":[{"text":"Event Handlers","targetRectangle":{"y":66,"x":231.52,"width":560.96,"height":109}},{"text":"Event Listeners","targetRectangle":{"y":238,"x":79,"width":270,"height":43}},{"text":"https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener","targetRectangle":{"y":324,"x":79,"width":810,"height":86}},{"text":"List of events","targetRectangle":{"y":453,"x":79,"width":252,"height":43}},{"text":"https://developer.mozilla.org/en-US/docs/Web/Events","targetRectangle":{"y":539,"x":79,"width":810,"height":86}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"D54EA234E742C820B0A832BA23CE84F0"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4.jsonp b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4.jsonp new file mode 100644 index 0000000..edbcdda --- /dev/null +++ b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4","json":{"assets":{"5B0DAB8BE0275C3FF0A58F1077932338":{"type":"texture","index":19,"assetRequest":{"type":"slide","state":"incoming","slide":"DDF74C93-8902-4DB3-B831-4F6AFED8B345"},"url":{"web":"assets/5B0DAB8BE0275C3FF0A58F1077932338.svg"},"width":1024,"height":768},"D54EA234E742C820B0A832BA23CE84F0":{"type":"texture","index":18,"assetRequest":{"type":"slide","state":"outgoing","slide":"DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4"},"url":{"web":"assets/D54EA234E742C820B0A832BA23CE84F0.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"5B0DAB8BE0275C3FF0A58F1077932338"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"D54EA234E742C820B0A832BA23CE84F0"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[{"url":"https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener","targetRectangle":{"y":324,"x":79,"width":810,"height":86}},{"url":"https://developer.mozilla.org/en-US/docs/Web/Events","targetRectangle":{"y":539,"x":79,"width":810,"height":86}}],"accessibility":[{"text":"Event Handlers","targetRectangle":{"y":66,"x":231.52,"width":560.96,"height":109}},{"text":"Event Listeners","targetRectangle":{"y":238,"x":79,"width":270,"height":43}},{"text":"https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener","targetRectangle":{"y":324,"x":79,"width":810,"height":86}},{"text":"List of events","targetRectangle":{"y":453,"x":79,"width":252,"height":43}},{"text":"https://developer.mozilla.org/en-US/docs/Web/Events","targetRectangle":{"y":539,"x":79,"width":810,"height":86}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"D54EA234E742C820B0A832BA23CE84F0"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/5B0DAB8BE0275C3FF0A58F1077932338.svg b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/5B0DAB8BE0275C3FF0A58F1077932338.svg new file mode 100644 index 0000000..9960aa5 --- /dev/null +++ b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/5B0DAB8BE0275C3FF0A58F1077932338.svg @@ -0,0 +1 @@ +SVG generated by KeynoteReviewWhat are functions Syntax for creating functions Declaring a function vs invoking a function Returning values from functions Adding event handlers in JavaScript \ No newline at end of file diff --git a/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/5B0DAB8BE0275C3FF0A58F1077932338.svgp b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/5B0DAB8BE0275C3FF0A58F1077932338.svgp new file mode 100644 index 0000000..a858aa9 --- /dev/null +++ b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/5B0DAB8BE0275C3FF0A58F1077932338.svgp @@ -0,0 +1 @@ +local_svg( {"name":"5B0DAB8BE0275C3FF0A58F1077932338","slide":"DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4","svg":"SVG generated by KeynoteReviewWhat are functions Syntax for creating functions Declaring a function vs invoking a function Returning values from functions Adding event handlers in JavaScript"} ) \ No newline at end of file diff --git a/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/D54EA234E742C820B0A832BA23CE84F0.svg b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/D54EA234E742C820B0A832BA23CE84F0.svg new file mode 100644 index 0000000..f342917 --- /dev/null +++ b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/D54EA234E742C820B0A832BA23CE84F0.svg @@ -0,0 +1 @@ +SVG generated by KeynoteEvent HandlersEvent Listeners https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener List of events https://developer.mozilla.org/en-US/docs/Web/Events \ No newline at end of file diff --git a/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/D54EA234E742C820B0A832BA23CE84F0.svgp b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/D54EA234E742C820B0A832BA23CE84F0.svgp new file mode 100644 index 0000000..c37b7ac --- /dev/null +++ b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/assets/D54EA234E742C820B0A832BA23CE84F0.svgp @@ -0,0 +1 @@ +local_svg( {"name":"D54EA234E742C820B0A832BA23CE84F0","slide":"DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4","svg":"SVG generated by KeynoteEvent HandlersEvent Listeners https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener List of events https://developer.mozilla.org/en-US/docs/Web/Events "} ) \ No newline at end of file diff --git a/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/thumbnail.jpeg b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/thumbnail.jpeg new file mode 100644 index 0000000..a52f70c Binary files /dev/null and b/12-functions/assets/DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4/thumbnail.jpeg differ diff --git a/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/DDF74C93-8902-4DB3-B831-4F6AFED8B345.json b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/DDF74C93-8902-4DB3-B831-4F6AFED8B345.json new file mode 100644 index 0000000..149b0c7 --- /dev/null +++ b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/DDF74C93-8902-4DB3-B831-4F6AFED8B345.json @@ -0,0 +1 @@ +{"assets":{"DB8451458D98EFA7506DBEBC2B1323F0":{"type":"texture","index":21,"assetRequest":{"type":"slide","state":"incoming","slide":"none"},"url":{"web":"assets/DB8451458D98EFA7506DBEBC2B1323F0.svg"},"width":1024,"height":768},"5B0DAB8BE0275C3FF0A58F1077932338":{"type":"texture","index":20,"assetRequest":{"type":"slide","state":"outgoing","slide":"DDF74C93-8902-4DB3-B831-4F6AFED8B345"},"url":{"web":"assets/5B0DAB8BE0275C3FF0A58F1077932338.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"DB8451458D98EFA7506DBEBC2B1323F0"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"5B0DAB8BE0275C3FF0A58F1077932338"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Review","targetRectangle":{"y":66,"x":378,"width":268,"height":109}},{"text":"What are functions","targetRectangle":{"y":265,"x":113.9999995231628,"width":290.052,"height":35.79998540878296}},{"text":"Syntax for creating functions","targetRectangle":{"y":308,"x":113.9999995231628,"width":440.1,"height":77.79998540878296}},{"text":"Declaring a function vs invoking a function","targetRectangle":{"y":393,"x":113.9999995231628,"width":649.4759999999999,"height":77.79998540878296}},{"text":"Returning values from functions","targetRectangle":{"y":478,"x":113.9999995231628,"width":488.052,"height":77.79998540878296}},{"text":"Adding event handlers in JavaScript","targetRectangle":{"y":563,"x":113.9999995231628,"width":554.7959999999999,"height":77.79998540878296}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"5B0DAB8BE0275C3FF0A58F1077932338"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/DDF74C93-8902-4DB3-B831-4F6AFED8B345.jsonp b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/DDF74C93-8902-4DB3-B831-4F6AFED8B345.jsonp new file mode 100644 index 0000000..1a14667 --- /dev/null +++ b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/DDF74C93-8902-4DB3-B831-4F6AFED8B345.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"DDF74C93-8902-4DB3-B831-4F6AFED8B345","json":{"assets":{"DB8451458D98EFA7506DBEBC2B1323F0":{"type":"texture","index":21,"assetRequest":{"type":"slide","state":"incoming","slide":"none"},"url":{"web":"assets/DB8451458D98EFA7506DBEBC2B1323F0.svg"},"width":1024,"height":768},"5B0DAB8BE0275C3FF0A58F1077932338":{"type":"texture","index":20,"assetRequest":{"type":"slide","state":"outgoing","slide":"DDF74C93-8902-4DB3-B831-4F6AFED8B345"},"url":{"web":"assets/5B0DAB8BE0275C3FF0A58F1077932338.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"DB8451458D98EFA7506DBEBC2B1323F0"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"5B0DAB8BE0275C3FF0A58F1077932338"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Review","targetRectangle":{"y":66,"x":378,"width":268,"height":109}},{"text":"What are functions","targetRectangle":{"y":265,"x":113.9999995231628,"width":290.052,"height":35.79998540878296}},{"text":"Syntax for creating functions","targetRectangle":{"y":308,"x":113.9999995231628,"width":440.1,"height":77.79998540878296}},{"text":"Declaring a function vs invoking a function","targetRectangle":{"y":393,"x":113.9999995231628,"width":649.4759999999999,"height":77.79998540878296}},{"text":"Returning values from functions","targetRectangle":{"y":478,"x":113.9999995231628,"width":488.052,"height":77.79998540878296}},{"text":"Adding event handlers in JavaScript","targetRectangle":{"y":563,"x":113.9999995231628,"width":554.7959999999999,"height":77.79998540878296}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"5B0DAB8BE0275C3FF0A58F1077932338"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/5B0DAB8BE0275C3FF0A58F1077932338.svg b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/5B0DAB8BE0275C3FF0A58F1077932338.svg new file mode 100644 index 0000000..9960aa5 --- /dev/null +++ b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/5B0DAB8BE0275C3FF0A58F1077932338.svg @@ -0,0 +1 @@ +SVG generated by KeynoteReviewWhat are functions Syntax for creating functions Declaring a function vs invoking a function Returning values from functions Adding event handlers in JavaScript \ No newline at end of file diff --git a/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/5B0DAB8BE0275C3FF0A58F1077932338.svgp b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/5B0DAB8BE0275C3FF0A58F1077932338.svgp new file mode 100644 index 0000000..075a47f --- /dev/null +++ b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/5B0DAB8BE0275C3FF0A58F1077932338.svgp @@ -0,0 +1 @@ +local_svg( {"name":"5B0DAB8BE0275C3FF0A58F1077932338","slide":"DDF74C93-8902-4DB3-B831-4F6AFED8B345","svg":"SVG generated by KeynoteReviewWhat are functions Syntax for creating functions Declaring a function vs invoking a function Returning values from functions Adding event handlers in JavaScript"} ) \ No newline at end of file diff --git a/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/DB8451458D98EFA7506DBEBC2B1323F0.svg b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/DB8451458D98EFA7506DBEBC2B1323F0.svg new file mode 100644 index 0000000..965292a --- /dev/null +++ b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/DB8451458D98EFA7506DBEBC2B1323F0.svg @@ -0,0 +1 @@ +SVG generated by Keynote \ No newline at end of file diff --git a/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/DB8451458D98EFA7506DBEBC2B1323F0.svgp b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/DB8451458D98EFA7506DBEBC2B1323F0.svgp new file mode 100644 index 0000000..6a791d1 --- /dev/null +++ b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/assets/DB8451458D98EFA7506DBEBC2B1323F0.svgp @@ -0,0 +1 @@ +local_svg( {"name":"DB8451458D98EFA7506DBEBC2B1323F0","slide":"DDF74C93-8902-4DB3-B831-4F6AFED8B345","svg":"SVG generated by Keynote"} ) \ No newline at end of file diff --git a/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/thumbnail.jpeg b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/thumbnail.jpeg new file mode 100644 index 0000000..3c04a89 Binary files /dev/null and b/12-functions/assets/DDF74C93-8902-4DB3-B831-4F6AFED8B345/thumbnail.jpeg differ diff --git a/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/FA415760-0FDB-4CA5-95B4-9755601A1835.json b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/FA415760-0FDB-4CA5-95B4-9755601A1835.json new file mode 100644 index 0000000..b0aa5bc --- /dev/null +++ b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/FA415760-0FDB-4CA5-95B4-9755601A1835.json @@ -0,0 +1 @@ +{"assets":{"F63ACC226EED23F82DBE22614B37C596":{"type":"texture","index":7,"assetRequest":{"type":"slide","state":"incoming","slide":"A66E77D7-EA29-405A-9456-11EC76B04968"},"url":{"web":"assets/F63ACC226EED23F82DBE22614B37C596.svg"},"width":1024,"height":768},"68618C61762CDE27FD572F0BE3D24183":{"type":"texture","index":6,"assetRequest":{"type":"slide","state":"outgoing","slide":"FA415760-0FDB-4CA5-95B4-9755601A1835"},"url":{"web":"assets/68618C61762CDE27FD572F0BE3D24183.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"F63ACC226EED23F82DBE22614B37C596"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"68618C61762CDE27FD572F0BE3D24183"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Syntax","targetRectangle":{"y":66,"x":388.64,"width":246.72,"height":109}},{"text":"var doSomething = function () {","targetRectangle":{"y":376,"x":79,"width":669.6,"height":51}},{"text":" console.log('I do something!')","targetRectangle":{"y":427,"x":79,"width":691.2000000000002,"height":51}},{"text":"}","targetRectangle":{"y":478,"x":79,"width":21.59999999999999,"height":51}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"68618C61762CDE27FD572F0BE3D24183"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/FA415760-0FDB-4CA5-95B4-9755601A1835.jsonp b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/FA415760-0FDB-4CA5-95B4-9755601A1835.jsonp new file mode 100644 index 0000000..fd99318 --- /dev/null +++ b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/FA415760-0FDB-4CA5-95B4-9755601A1835.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"FA415760-0FDB-4CA5-95B4-9755601A1835","json":{"assets":{"F63ACC226EED23F82DBE22614B37C596":{"type":"texture","index":7,"assetRequest":{"type":"slide","state":"incoming","slide":"A66E77D7-EA29-405A-9456-11EC76B04968"},"url":{"web":"assets/F63ACC226EED23F82DBE22614B37C596.svg"},"width":1024,"height":768},"68618C61762CDE27FD572F0BE3D24183":{"type":"texture","index":6,"assetRequest":{"type":"slide","state":"outgoing","slide":"FA415760-0FDB-4CA5-95B4-9755601A1835"},"url":{"web":"assets/68618C61762CDE27FD572F0BE3D24183.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"F63ACC226EED23F82DBE22614B37C596"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"68618C61762CDE27FD572F0BE3D24183"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Syntax","targetRectangle":{"y":66,"x":388.64,"width":246.72,"height":109}},{"text":"var doSomething = function () {","targetRectangle":{"y":376,"x":79,"width":669.6,"height":51}},{"text":" console.log('I do something!')","targetRectangle":{"y":427,"x":79,"width":691.2000000000002,"height":51}},{"text":"}","targetRectangle":{"y":478,"x":79,"width":21.59999999999999,"height":51}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"68618C61762CDE27FD572F0BE3D24183"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/68618C61762CDE27FD572F0BE3D24183.svg b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/68618C61762CDE27FD572F0BE3D24183.svg new file mode 100644 index 0000000..29913a5 --- /dev/null +++ b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/68618C61762CDE27FD572F0BE3D24183.svg @@ -0,0 +1 @@ +SVG generated by KeynoteSyntaxvar doSomething = function () { console.log('I do something!') } \ No newline at end of file diff --git a/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/68618C61762CDE27FD572F0BE3D24183.svgp b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/68618C61762CDE27FD572F0BE3D24183.svgp new file mode 100644 index 0000000..d070f59 --- /dev/null +++ b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/68618C61762CDE27FD572F0BE3D24183.svgp @@ -0,0 +1 @@ +local_svg( {"name":"68618C61762CDE27FD572F0BE3D24183","slide":"FA415760-0FDB-4CA5-95B4-9755601A1835","svg":"SVG generated by KeynoteSyntaxvar doSomething = function () { console.log('I do something!') }"} ) \ No newline at end of file diff --git a/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/F63ACC226EED23F82DBE22614B37C596.svg b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/F63ACC226EED23F82DBE22614B37C596.svg new file mode 100644 index 0000000..4800758 --- /dev/null +++ b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/F63ACC226EED23F82DBE22614B37C596.svg @@ -0,0 +1 @@ +SVG generated by KeynoteSyntaxdoSomething() \ No newline at end of file diff --git a/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/F63ACC226EED23F82DBE22614B37C596.svgp b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/F63ACC226EED23F82DBE22614B37C596.svgp new file mode 100644 index 0000000..d8b62e7 --- /dev/null +++ b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/assets/F63ACC226EED23F82DBE22614B37C596.svgp @@ -0,0 +1 @@ +local_svg( {"name":"F63ACC226EED23F82DBE22614B37C596","slide":"FA415760-0FDB-4CA5-95B4-9755601A1835","svg":"SVG generated by KeynoteSyntaxdoSomething()"} ) \ No newline at end of file diff --git a/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/thumbnail.jpeg b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/thumbnail.jpeg new file mode 100644 index 0000000..31231d5 Binary files /dev/null and b/12-functions/assets/FA415760-0FDB-4CA5-95B4-9755601A1835/thumbnail.jpeg differ diff --git a/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/FE46E5E1-675B-4AC9-BA6F-23A021234F1A.json b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/FE46E5E1-675B-4AC9-BA6F-23A021234F1A.json new file mode 100644 index 0000000..038a05f --- /dev/null +++ b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/FE46E5E1-675B-4AC9-BA6F-23A021234F1A.json @@ -0,0 +1 @@ +{"assets":{"2ADD6CE86FBD086163FF55ED441A5943":{"type":"texture","index":13,"assetRequest":{"type":"slide","state":"incoming","slide":"BCD42550-1889-4B98-AD6A-D9CFFDC598A4"},"url":{"web":"assets/2ADD6CE86FBD086163FF55ED441A5943.svg"},"width":1024,"height":768},"1D26268DDCD87298321F6EA8FB70B0B2":{"type":"texture","index":12,"assetRequest":{"type":"slide","state":"outgoing","slide":"FE46E5E1-675B-4AC9-BA6F-23A021234F1A"},"url":{"web":"assets/1D26268DDCD87298321F6EA8FB70B0B2.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"2ADD6CE86FBD086163FF55ED441A5943"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"1D26268DDCD87298321F6EA8FB70B0B2"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Passing arguments","targetRectangle":{"y":66,"x":165.4400000000001,"width":693.1199999999999,"height":109}},{"text":"function sayHello(name) {","targetRectangle":{"y":376,"x":79,"width":540,"height":51}},{"text":" console.log(‘Hello ‘ + name + ‘!’)","targetRectangle":{"y":427,"x":79,"width":777.6000000000003,"height":51}},{"text":"}","targetRectangle":{"y":478,"x":79,"width":21.59999999999999,"height":51}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"1D26268DDCD87298321F6EA8FB70B0B2"}]}]}}]} \ No newline at end of file diff --git a/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/FE46E5E1-675B-4AC9-BA6F-23A021234F1A.jsonp b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/FE46E5E1-675B-4AC9-BA6F-23A021234F1A.jsonp new file mode 100644 index 0000000..e7b8490 --- /dev/null +++ b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/FE46E5E1-675B-4AC9-BA6F-23A021234F1A.jsonp @@ -0,0 +1 @@ +local_slide( {"name":"FE46E5E1-675B-4AC9-BA6F-23A021234F1A","json":{"assets":{"2ADD6CE86FBD086163FF55ED441A5943":{"type":"texture","index":13,"assetRequest":{"type":"slide","state":"incoming","slide":"BCD42550-1889-4B98-AD6A-D9CFFDC598A4"},"url":{"web":"assets/2ADD6CE86FBD086163FF55ED441A5943.svg"},"width":1024,"height":768},"1D26268DDCD87298321F6EA8FB70B0B2":{"type":"texture","index":12,"assetRequest":{"type":"slide","state":"outgoing","slide":"FE46E5E1-675B-4AC9-BA6F-23A021234F1A"},"url":{"web":"assets/1D26268DDCD87298321F6EA8FB70B0B2.svg"},"width":1024,"height":768}},"events":[{"effects":[{"beginTime":0,"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"2ADD6CE86FBD086163FF55ED441A5943"},{"animations":[{"timeOffset":0,"from":{"scalar":false},"beginTime":0,"repeatCount":0,"fillMode":"both","property":"hidden","autoreverses":false,"duration":0.01,"to":{"scalar":true}}],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"1D26268DDCD87298321F6EA8FB70B0B2"}]}]},"effects":[],"duration":0.01,"type":"transition","name":"none","objectID":"0"}],"automaticPlay":false,"hyperlinks":[],"accessibility":[{"text":"Passing arguments","targetRectangle":{"y":66,"x":165.4400000000001,"width":693.1199999999999,"height":109}},{"text":"function sayHello(name) {","targetRectangle":{"y":376,"x":79,"width":540,"height":51}},{"text":" console.log(‘Hello ‘ + name + ‘!’)","targetRectangle":{"y":427,"x":79,"width":777.6000000000003,"height":51}},{"text":"}","targetRectangle":{"y":478,"x":79,"width":21.59999999999999,"height":51}}],"baseLayer":{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"objectID":"0","layers":[{"animations":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,-0.0004922987690640373,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":251658240,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"layers":[{"animations":[],"layers":[],"initialState":{"affineTransform":[1,0,0,1,0,0],"masksToBounds":false,"rotation":0,"scale":1,"position":{"pointX":512,"pointY":384},"width":1024,"sublayerTransform":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],"contentsRect":{"y":0,"x":0,"width":1,"height":1},"opacity":1,"edgeAntialiasingMask":0,"height":768,"hidden":false,"anchorPoint":{"pointX":0.5,"pointY":0.5}},"texture":"1D26268DDCD87298321F6EA8FB70B0B2"}]}]}}]}} ) \ No newline at end of file diff --git a/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/1D26268DDCD87298321F6EA8FB70B0B2.svg b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/1D26268DDCD87298321F6EA8FB70B0B2.svg new file mode 100644 index 0000000..b684b16 --- /dev/null +++ b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/1D26268DDCD87298321F6EA8FB70B0B2.svg @@ -0,0 +1 @@ +SVG generated by KeynotePassing argumentsfunction sayHello(name) { console.log(Hello + name + !) } \ No newline at end of file diff --git a/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/1D26268DDCD87298321F6EA8FB70B0B2.svgp b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/1D26268DDCD87298321F6EA8FB70B0B2.svgp new file mode 100644 index 0000000..b4e7564 --- /dev/null +++ b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/1D26268DDCD87298321F6EA8FB70B0B2.svgp @@ -0,0 +1 @@ +local_svg( {"name":"1D26268DDCD87298321F6EA8FB70B0B2","slide":"FE46E5E1-675B-4AC9-BA6F-23A021234F1A","svg":"SVG generated by KeynotePassing argumentsfunction sayHello(name) { console.log(Hello + name + !) }"} ) \ No newline at end of file diff --git a/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/2ADD6CE86FBD086163FF55ED441A5943.svg b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/2ADD6CE86FBD086163FF55ED441A5943.svg new file mode 100644 index 0000000..641ff8e --- /dev/null +++ b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/2ADD6CE86FBD086163FF55ED441A5943.svg @@ -0,0 +1 @@ +SVG generated by KeynoteEvent Handlersfunction changeBackground(color) { document.querySelector(body') .style.background = color } \ No newline at end of file diff --git a/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/2ADD6CE86FBD086163FF55ED441A5943.svgp b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/2ADD6CE86FBD086163FF55ED441A5943.svgp new file mode 100644 index 0000000..4831c68 --- /dev/null +++ b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/assets/2ADD6CE86FBD086163FF55ED441A5943.svgp @@ -0,0 +1 @@ +local_svg( {"name":"2ADD6CE86FBD086163FF55ED441A5943","slide":"FE46E5E1-675B-4AC9-BA6F-23A021234F1A","svg":"SVG generated by KeynoteEvent Handlersfunction changeBackground(color) { document.querySelector(body') .style.background = color }"} ) \ No newline at end of file diff --git a/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/thumbnail.jpeg b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/thumbnail.jpeg new file mode 100644 index 0000000..621a172 Binary files /dev/null and b/12-functions/assets/FE46E5E1-675B-4AC9-BA6F-23A021234F1A/thumbnail.jpeg differ diff --git a/12-functions/assets/header.json b/12-functions/assets/header.json new file mode 100644 index 0000000..ee5c327 --- /dev/null +++ b/12-functions/assets/header.json @@ -0,0 +1 @@ +{"autoplayTransitionDelay":5,"author":"","timestamp":"2016-56-3 15:9:8","loopSlideshow":0,"filename":"12-functions.key","autoplayBuildDelay":2,"comment":"","title":"12-functions.key","showMode":0,"creator":"Apple Keynote 6.6.2","slideList":["615F7CD4-E262-41F7-8138-806EC6AB1FAB","944D9CC6-5F1A-4331-B0BA-A00F63E725B3","2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91","FA415760-0FDB-4CA5-95B4-9755601A1835","A66E77D7-EA29-405A-9456-11EC76B04968","D281EBB7-86B3-4E15-8BBD-C60CC41E4318","FE46E5E1-675B-4AC9-BA6F-23A021234F1A","BCD42550-1889-4B98-AD6A-D9CFFDC598A4","D27959DF-3B01-4006-B455-D9B647C34759","DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4","DDF74C93-8902-4DB3-B831-4F6AFED8B345"],"soundtrack":{"mode":0,"volume":1},"slideWidth":1024,"slideHeight":768,"slideCount":11,"majorVersion":1,"minorVersion":2,"fonts":["FiraMono-Regular","AvenirNext-DemiBold","HelveticaNeueLTPro-Lt","AppleColorEmoji"]} \ No newline at end of file diff --git a/12-functions/assets/header.jsonp b/12-functions/assets/header.jsonp new file mode 100644 index 0000000..edaff46 --- /dev/null +++ b/12-functions/assets/header.jsonp @@ -0,0 +1 @@ +local_header( {"autoplayTransitionDelay":5,"author":"","timestamp":"2016-56-3 15:9:8","loopSlideshow":0,"filename":"12-functions.key","autoplayBuildDelay":2,"comment":"","title":"12-functions.key","showMode":0,"creator":"Apple Keynote 6.6.2","slideList":["615F7CD4-E262-41F7-8138-806EC6AB1FAB","944D9CC6-5F1A-4331-B0BA-A00F63E725B3","2A06FB3D-4FF3-4B5D-871E-C2C6D2305D91","FA415760-0FDB-4CA5-95B4-9755601A1835","A66E77D7-EA29-405A-9456-11EC76B04968","D281EBB7-86B3-4E15-8BBD-C60CC41E4318","FE46E5E1-675B-4AC9-BA6F-23A021234F1A","BCD42550-1889-4B98-AD6A-D9CFFDC598A4","D27959DF-3B01-4006-B455-D9B647C34759","DBCEB7C1-37C8-45B9-B60F-0DBBB4B07BE4","DDF74C93-8902-4DB3-B831-4F6AFED8B345"],"soundtrack":{"mode":0,"volume":1},"slideWidth":1024,"slideHeight":768,"slideCount":11,"majorVersion":1,"minorVersion":2,"fonts":["FiraMono-Regular","AvenirNext-DemiBold","HelveticaNeueLTPro-Lt","AppleColorEmoji"]} ) \ No newline at end of file diff --git a/12-functions/assets/player/AnimationManager.js b/12-functions/assets/player/AnimationManager.js new file mode 100644 index 0000000..a8d4d80 --- /dev/null +++ b/12-functions/assets/player/AnimationManager.js @@ -0,0 +1 @@ +var kKeyframeRule=window.CSSRule.WEBKIT_KEYFRAMES_RULE;var AnimationManager=Class.create({initialize:function(){var a=document.createElement("style");a.type="text/css";a.media="screen";document.getElementsByTagName("head")[0].appendChild(a);this.styleSheet=document.styleSheets[document.styleSheets.length-1];this.createdAnimations=new Object()},createAnimation:function(a){this.styleSheet.insertRule(kKeyframesPropertyName+" "+a+" {}",0);return this.styleSheet.cssRules[0]},deleteAllAnimations:function(){while(this.styleSheet.cssRules.length>0){this.styleSheet.deleteRule(0)}this.createdAnimations=new Object()},markAnimationsCreated:function(a){this.createdAnimations[a]=true},animationsCreated:function(a){return this.createdAnimations[a]}}); \ No newline at end of file diff --git a/12-functions/assets/player/DebuggingSupport.js b/12-functions/assets/player/DebuggingSupport.js new file mode 100644 index 0000000..3c5093c --- /dev/null +++ b/12-functions/assets/player/DebuggingSupport.js @@ -0,0 +1 @@ +var gDebug=false;var gDebugOnMobile=false;var gNumDebugMessagesSent=0;var gNumDebugMessagesQueued=0;var gDebugMessageQueue=new Array();var gDebugMessageRequest=null;var gDebugLastClassName="";var gDebugLastMethodName="";var gDebugSimulateSlowTextureDownload=false;var gDebugSimulateTextureLoadFailure=false;var gDebugSimulateScriptDownloadFailure=false;var kDebugFunction="function";var kDebugSurpressMessage="!NoOp_!NoOp";var kDebugSetupShowController=kDebugFunction+"_setupShowController";var kDebugShowController="!ShowController";var kDebugShowController_AdvanceToNextBuild=kDebugShowController+"_!advanceToNextBuild";var kDebugShowController_AdvanceToNextSlide=kDebugShowController+"_!advanceToNextSlide";var kDebugShowController_DoIdleProcessing=kDebugShowController+"_!doIdleProcessing";var kDebugShowController_GoBackToPreviousBuild=kDebugShowController+"_!goBackToPreviousBuild";var kDebugShowController_GoBackToPreviousSlide=kDebugShowController+"_!goBackToPreviousSlide";var kDebugShowController_HandleScriptDidDownloadEvent=kDebugShowController+"_!handleScriptDidDownloadEvent";var kDebugShowController_HandleScriptDidNotDownloadEvent=kDebugShowController+"_!handleScriptDidNotDownloadEvent";var kDebugShowController_JumpToScene=kDebugShowController+"_!jumpToScene";var kDebugShowController_OnKeyPress=kDebugShowController+"_!onKeyPress";var kDebugTouchController="!TouchController";var kDebugTouchController_HandleGestureEndEvent=kDebugTouchController+"_!handleGestureEndEvent";var kDebugTouchController_HandleGestureStartEvent=kDebugTouchController+"_!handleGestureStartEvent";var kDebugTouchController_HandleTouchCancelEvent=kDebugTouchController+"_!handleTouchCancelEvent";var kDebugTouchController_HandleTouchCancelEvent=kDebugTouchController+"_!handleTouchMoveEvent";var kDebugTouchController_HandleTouchEndEvent=kDebugTouchController+"_!handleTouchEndEvent";var kDebugTouchController_HandleTouchStartEvent=kDebugTouchController+"_!handleTouchStartEvent";var kDebugTouchController_Initialize=kDebugTouchController+"_!initialize";var kDebugTouchController_IsTouchWithinTrackArea=kDebugTouchController+"_!isTouchWithinTrackArea";var kDebugTouchController_SetTrackArea=kDebugTouchController+"_!setTrackArea";var kDebugScriptMangaer="!ScriptManager";var kDebugScriptMangaer_DownloadScript=kDebugScriptMangaer+"_!downloadScript";var kDebugTimer="DebugTimer";var kDebugTimer_AdvanceToNextBuild=kDebugTimer+"_!advanceToNextBuild";var kDebugTimer_CreateAnimationsForScene=kDebugTimer+"_!createAnimationsForScene";var kDebugTimer_ApplyAnimationsForScene=kDebugTimer+"_!applyAnimationsForScene";var kDebugTimer_PreProcessSceneAnimations=kDebugTimer+"_!preProcessSceneAnimations";var kDebugTimer_AdvanceToNextBuild_to_ApplyAnimations=kDebugTimer+"_!preProcessSceneAnimations_to_ApplyAnimations";var kDebugTimer_JumpToScene=kDebugTimer+"_!jumpToScene";var kDebugTimer_DisplayScene=kDebugTimer+"_!displayScene";function debugWarning(a,b){if(gDebug===false){return}debugSendMessage(a,"WARNING: "+b,true)}function debugMessageAlways(a,b){debugSendMessage(a,b,true)}function debugMessage(a,b){if(gDebug==false){return}if((gDevice==kDeviceMobile)&&(gDebugOnMobile==false)){return}debugSendMessage(a,b,false)}function debugSendMessage(b,g,a){var e=b.indexOf("_");var d=b.substring(0,e);var h=b.substring(e+1);var f=false;if(d[0]=="!"){d=d.substring(1);f=true}if(h[0]=="!"){h=h.substring(1);f=true}if(h[0]=="+"){h=h.substring(1);a=true}if((f==true)&&(a==false)){return}var c="";if(g==null){g=""}if(g[0]!="-"||d!=gDebugLastClassName||h!=gDebugLastMethodName){if(d==kDebugTimer){c=b+": "}else{if(d==kDebugFunction){c=h+"() "}else{c=d+"."+h+"() "}}}else{c=""}gDebugLastClassName=d;gDebugLastMethodName=h;if(gDevice==kDeviceMobile){gNumDebugMessagesSent++;var i=escape(gNumDebugMessagesSent+": "+c+g);gDebugMessageQueue[gNumDebugMessagesQueued]=i;gNumDebugMessagesQueued++;if(gNumDebugMessagesQueued==1){debugCheckMessageQueue()}}else{if(window.console){window.console.log(c+g)}}}function debugSendNextMessageInQueue(){var b=gDebugMessageQueue[0];gNumDebugMessagesQueued--;gDebugMessageQueue.splice(0,1);var a='/debugMessage.rhtml?message="'+b+'"';new Ajax.Request(a,{method:"get",onSuccess:function(c){debugMessageWasSent(c)},onFailure:function(c){debugMessageWasNotSent(c)}})}function debugMessageWasSent(a){debugCheckMessageQueue()}function debugMessageWasNotSent(a){debugCheckMessageQueue()}function debugCheckMessageQueue(){if(gNumDebugMessagesQueued>0){setTimeout(debugSendNextMessageInQueue,10)}}var DebugTimer=Class.create({initialize:function(a){var b=a.indexOf("_");var c=a.substring(b+1);if(c[0]!="!"){this.id=a;this.startTime=new Date();debugMessageAlways(a,"Start")}else{this.startTime=null}},stop:function(){if(this.startTime!=null){var b=new Date();var a=b-this.startTime;debugMessageAlways(this.id,"Stop - Elapsed Time: "+a)}}});function debugStopTimer(a){if(a){a.stop()}}var debugDomDumpLineNumber=0;function debugDumpDomFrom(c,b){var a=kDebugFunction+"_debugDumpDomFrom";debugDomDumpLineNumber=0;debugMessageAlways(a,"------------------ S T A R T O F D O M D U M P --- Context: "+b);debugRecursivelyDumpDomFrom(c,"");debugMessageAlways(a,"------------------ E N D O F D O M D U M P")}function debugRecursivelyDumpDomFrom(d,g){var e=kDebugFunction+"_recursivelyDumpDomFrom";var b=d.id;var a=d.nodeName.toLowerCase();if(a=="#text"){return}debugMessageAlways(e,"-"+(debugDomDumpLineNumber++)+g+"<"+a+" id='"+b+"'>");var c;for(c=0;c")}; \ No newline at end of file diff --git a/12-functions/assets/player/DisplayManager.js b/12-functions/assets/player/DisplayManager.js new file mode 100644 index 0000000..fd58b0f --- /dev/null +++ b/12-functions/assets/player/DisplayManager.js @@ -0,0 +1 @@ +var kStageSizeDidChangeEvent="DisplayManager:StageSizeDidChangeEvent";var kTimeoutValueForCursor=1000;var kMobilePortraitModeHorizontalMargin=8;var kMobilePortraitModeTopMargin=47;var kMobilePortraitModeVerticalCenterLine=161;var kMobilePortraitModeMaxStageHeight=228;var kMobilePortraitMaxStageHeight=0;var kMobilePortraitMaxStageWidth=0;var kMobileLandscapeModeVerticalMargin=7;var kMobileLandscapeModeHorizontallMargin=15;var kBottomButtonHeight=50;var kNavigationArrowSize=27;var kNavigationAreaHeight=kNavigationArrowSize;var kHelpAreaHeight=16;var kMobilePortraitModeVerticalCenterLineToNavigationAreaGap=148;var kStageToNavigationAreaGap=31;var kNavigationAreaToHelpAreaGap=52;var kHelpAreaToBottomGap=12;var kMobilePortraitModeNavigationAreaSideMargin=32;var kMobilePortraitModeHelpAreaSideMargin=16;var kMobileLandscapeModeMinSideSpacerWidth=kNavigationArrowSize+10;var kPadPortraitModeHorizontalMargin=8;var kPadPortraitModeMaxStageHeight=540;var kPadPortraitModeVerticalCenterLine=400;var kPadLandscapeModeHorizontallMargin=15;var kPadLandscapeModeVerticalMargin=7;var DisplayManager=Class.create({initialize:function(){document.observe(kShowSizeDidChangeEvent,this.handleShowSizeDidChangeEvent.bind(this));document.observe(kOrientationChangedEvent,this.handleOrientationDidChangeEvent.bind(this));this.body=document.getElementById("body");this.stageArea=document.getElementById("stageArea");this.stage=document.getElementById("stage");this.hyperlinkPlane=document.getElementById("hyperlinkPlane");this.waitingIndicator=document.getElementById("waitingIndicator");this.helpText=document.getElementById("helpText");this.previousButton=document.getElementById("previousButton");this.nextButton=document.getElementById("nextButton");this.slideCounter=document.getElementById("slideCounter");this.waitingIndicatorTimeout=null;this.orientation=kOrientationUnknown;this.showWidth=0;this.showHeight=0;this.stageAreaWidth=0;this.stageAreaHeight=0;this.stageAreaTop=0;this.stageAreaLeft=0;this.usableDisplayWidth=0;this.usableDisplayHeight=0;this.inLaunchMode=true;this.initialAddressBarScrollPerformed=false;this.updateUsableDisplayArea();this.positionWaitingIndicator();this.showWaitingIndicator();this.hyperlinksOnly=false;this.showStatisticsDisplay=gIpad&&getUrlParameter("statistics")==="1";this.hasCacheEverGoneOverPixelLimit=false;this.hhasStageEverGoneOverPixelLimit=false;this.cacheHighWaterMark=0;this.stageHighWaterMark=0;if(gMode===kModeMobile){this.stageArea.style.backgroundColor="black";this.helpText.innerHTML=kTapOrSwipeToAdvance}else{Event.observe(this.body,"mousemove",this.handleMouseMove.bind(this));this.lastMouseX=-1;this.lastMouseY=-1;this.cursorTimeout=null;this.setTimeoutForCursor()}},setHyperlinksOnlyMode:function(){this.hyperlinksOnly=true;this.setPreviousButtonEnabled(false);this.setNextButtonEnabled(false);this.helpText.style.display="none"},handleMouseMove:function(a){a=a||window.event;var b=Math.abs(this.lastMouseX-a.clientX)+Math.abs(this.lastMouseY-a.clientY);if(b>10){if(this.cursorIsShowing===false){this.showCursor()}else{if(!this.navigatorIsShowing){this.setTimeoutForCursor()}}}else{if(!this.navigatorIsShowing){this.setTimeoutForCursor()}}this.lastMouseX=a.clientX;this.lastMouseY=a.clientY},updateSlideNumber:function(b,a){var d="";var c=null;if(gMode!=kModeDesktop){d=kSlideLabel+" "+b+"/"+a;c=this.slideCounter}if(c!=null){c.innerHTML=d}},handleShowSizeDidChangeEvent:function(a){this.showWidth=a.memo.width;this.showHeight=a.memo.height;this.layoutDisplay()},handleOrientationDidChangeEvent:function(a){this.orientation=a.memo.orientation;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(this.handleOrientationDidChangeEvent_partTwo.bind(this),300)},handleOrientationDidChangeEvent_partTwo:function(){this.layoutDisplay();if(this.inLaunchMode===false){this.showApplicableControls()}},showCursor:function(){if(this.inLaunchMode){return}this.body.style.cursor="default";this.cursorIsShowing=true;this.setTimeoutForCursor()},hideCursor:function(){this.body.style.cursor="none";this.cursorIsShowing=false},setTimeoutForCursor:function(){if(this.cursorTimeout){clearTimeout(this.cursorTimeout)}this.cursorTimeout=setTimeout(this.handleTimeoutForCursor.bind(this),kTimeoutValueForCursor)},clearTimeoutForCursor:function(){if(this.cursorTimeout){clearTimeout(this.cursorTimeout)}},handleTimeoutForCursor:function(){this.hideCursor()},updateUsableDisplayArea:function(){if(gMode===kModeMobile){var a=gIpad;if(this.orientation===kOrientationLandscape){this.usableDisplayWidth=(a?kiPadDeviceHeight:kiPhoneDeviceHeight);this.usableDisplayHeight=(a?kiPadDeviceWidth:kiPhoneDeviceWidth)-kiPhoneStatusBarHeight-kiPhoneLandscapeButtonBarHeight-(a?(kiPadAddressBarHeight+kiPadBookmarksBarHeight):0)}else{this.usableDisplayWidth=(a?kiPadDeviceWidth:kiPhoneDeviceWidth);this.usableDisplayHeight=(a?kiPadDeviceHeight:kiPhoneDeviceHeight)-kiPhoneStatusBarHeight-kiPhonePortraitButtonBarHeight-(a?kiPadBookmarksBarHeight+10:0)}}else{this.usableDisplayWidth=window.innerWidth;this.usableDisplayHeight=window.innerHeight}},clearLaunchMode:function(){this.inLaunchMode=false;var a=this;runInNextEventLoop(this.showAll.bind(this))},positionWaitingIndicator:function(){var c=110;var b=32;var a;var d;if(gMode===kModeMobile&&this.orientation===kOrientationUnknown){a=1000;d=1000}else{if(gMode===kModeMobile&&this.orientation===kOrientationPortrait){a=(this.usableDisplayWidth-c)/2;if(gIpad===false){d=kMobilePortraitModeVerticalCenterLine-(c/2)}else{d=kPadPortraitModeVerticalCenterLine-(c/2)}}else{a=(this.usableDisplayWidth-c)/2;d=(this.usableDisplayHeight-c)/2}}setElementPosition(this.waitingIndicator,d,a,c,c)},hideWaitingIndicator:function(){this.waitingIndicator.style.display="none"},showWaitingIndicator:function(){this.waitingIndicator.style.display="block"},convertDisplayCoOrdsToShowCoOrds:function(d){var b={};var c=this.stageAreaLeft+this.stageAreaWidth;var a=this.stageAreaTop+this.stageAreaHeight;if((d.pointXc)||(d.pointYa)){b.pointX=-1;b.pointY=-1}else{b.pointX=((d.pointX-this.stageAreaLeft)/this.stageAreaWidth)*this.showWidth;b.pointY=((d.pointY-this.stageAreaTop)/this.stageAreaHeight)*this.showHeight}return b},layoutDisplay:function(){this.updateUsableDisplayArea();var q;var k;if(gMode===kModeDesktop){q=this.usableDisplayWidth;k=this.usableDisplayHeight;if(!gShowController.isFullscreen){if(q>this.showWidth||k>k){q=this.showWidth;k=k}}}else{if(gIpad===false){if(this.orientation===kOrientationPortrait){q=this.usableDisplayWidth-2*kMobilePortraitModeHorizontalMargin;k=kMobilePortraitModeMaxStageHeight}else{q=this.usableDisplayWidth-2*kMobileLandscapeModeHorizontallMargin;k=this.usableDisplayHeight-2*kMobileLandscapeModeVerticalMargin}}else{if(this.orientation===kOrientationPortrait){q=this.usableDisplayWidth-2*kPadPortraitModeHorizontalMargin;k=kPadPortraitModeMaxStageHeight}else{q=this.usableDisplayWidth-2*kPadLandscapeModeHorizontallMargin;k=this.usableDisplayHeight-2*kPadLandscapeModeVerticalMargin}}}var o=scaleSizeWithinSize(this.showWidth,this.showHeight,q,k);this.stageAreaWidth=o.width;this.stageAreaHeight=o.height;this.stageAreaLeft=(this.usableDisplayWidth-this.stageAreaWidth)/2;if(gMode===kModeDesktop){this.stageAreaTop=(k-this.stageAreaHeight)/2}else{if(this.orientation===kOrientationPortrait){if(gIpad===false){this.stageAreaTop=Math.max(10,kMobilePortraitModeVerticalCenterLine-(this.stageAreaHeight/2))}else{this.stageAreaTop=Math.max(10,kPadPortraitModeVerticalCenterLine-(this.stageAreaHeight/2))}}else{this.stageAreaTop=(this.usableDisplayHeight-this.stageAreaHeight)/2}}setElementPosition(this.stageArea,this.stageAreaTop,this.stageAreaLeft,this.stageAreaWidth,this.stageAreaHeight);var e=-1;var b=-1;var p=-1;var h=-1;var a=null;if(gMode===kModeDesktop){a=false;e=-1;b=-1;p=-1;h=-1}else{a=true;p=0;h=0;if(gIpad){b=kiPadDeviceHeight}else{b=kiPhoneDeviceHeight}e=b}if(p!=-1&&h!=-1&&e!=-1&&b!=-1){var s=document.getElementById("background");s.style.top=p;s.style.left=h;s.style.width=e;s.style.height=b;if(a===true){s.style.visibility="visible"}}var g={x:0,y:0,width:this.usableDisplayWidth,height:this.stageAreaTop};var d={x:0,y:this.stageAreaTop+this.stageAreaHeight,width:this.usableDisplayWidth,height:this.usableDisplayHeight-this.stageAreaTop-this.stageAreaHeight};var n={x:0,y:this.stageAreaTop,width:this.stageAreaLeft,height:this.stageAreaHeight};var i={x:this.stageAreaLeft+this.stageAreaWidth,y:this.stageAreaTop,width:this.usableDisplayWidth-this.stageAreaWidth-n.width,height:this.stageAreaHeight};var l=document.getElementById("statisticsDisplay");if(this.showStatisticsDisplay&&gIpad&&this.orientation===kOrientationPortrait){setElementPosition(l,d.y+70,0,this.usableDisplayWidth,d.height-105);l.style.visibility="visible"}if(gMode!=kModeDesktop){if(this.orientation===kOrientationPortrait){var m=kNavigationArrowSize+2*kMobilePortraitModeNavigationAreaSideMargin;var f=kNavigationArrowSize+2*kStageToNavigationAreaGap;var r=this.usableDisplayWidth-2*m;var c=d.y+7;setElementPosition(this.previousButton,c,0,m,f);setElementPosition(this.slideCounter,c+kStageToNavigationAreaGap,m,r,f);setElementPosition(this.nextButton,c,m+r-5,m,f);setElementPosition(this.helpText,d.y+d.height-kHelpAreaToBottomGap-kHelpAreaHeight,0,this.usableDisplayWidth,kHelpAreaHeight);setElementPosition(this.infoPanelIcon,this.usableDisplayHeight-kInfoPanelButtonHeight,this.usableDisplayWidth-kInfoPanelButtonWidth-5,kInfoPanelButtonWidth,kInfoPanelButtonHeight)}else{var j={x:0,y:0,width:0,height:0};if(n.width>kMobileLandscapeModeMinSideSpacerWidth){setElementRect(this.previousButton,n);setElementRect(this.nextButton,i)}else{setElementRect(this.previousButton,j);setElementRect(this.nextButton,j)}setElementRect(this.slideCounter,j);setElementRect(this.helpText,j);setElementRect(this.infoPanelIcon,j)}}this.positionWaitingIndicator();this.hideAddressBar();document.fire(kStageSizeDidChangeEvent,{left:this.stageAreaLeft,top:this.stageAreaTop,width:this.stageAreaWidth,height:this.stageAreaHeight})},showApplicableControls:function(){if(this.inLaunchMode===true){hideElement(this.previousButton);hideElement(this.nextButton);hideElement(this.slideCounter);hideElement(this.helpText);hideElement(this.infoPanelIcon)}else{if(gMode===kModeDesktop){hideElement(this.previousButton);hideElement(this.nextButton);hideElement(this.slideCounter);hideElement(this.helpText);hideElement(this.infoPanelIcon)}else{if(this.orientation===kOrientationPortrait){showElement(this.previousButton);showElement(this.nextButton);showElement(this.slideCounter);showElement(this.helpText);showElement(this.infoPanelIcon)}else{hideElement(this.slideCounter);hideElement(this.helpText);hideElement(this.infoPanelIcon);if(this.stageAreaLeft>kMobileLandscapeModeMinSideSpacerWidth){showElement(this.previousButton);showElement(this.nextButton)}else{hideElement(this.previousButton);hideElement(this.nextButton)}}}}this.hideAddressBar()},showAll:function(){this.hideWaitingIndicator();setTimeout(this.showAll_partTwo.bind(this))},showAll_partTwo:function(){if(gDevice===kDeviceMobile){window.scrollTo(0,1);setTimeout(this.showAll_partThree.bind(this))}else{this.showAll_partThree()}},showAll_partThree:function(){if(this.inLaunchMode===false){this.showApplicableControls()}showElement(this.stageArea);var a=navigator.userAgent.match(/Windows/);if(a){if(gShowController.delegate.triggerReflow){gShowController.delegate.triggerReflow()}}showElement(this.hyperlinkPlane);if(gMode===kModeMobile){showElement(this.infoPanelIcon)}},setPreviousButtonEnabled:function(a){if(this.hyperlinksOnly){return}if(gMode!=kModeDesktop){if(a){this.previousButton.setAttribute("class","previousButtonEnabled")}else{this.previousButton.setAttribute("class","previousButtonDisabled")}}},setNextButtonEnabled:function(a){if(this.hyperlinksOnly){return}if(gMode!=kModeDesktop){if(a){this.nextButton.setAttribute("class","nextButtonEnabled")}else{this.nextButton.setAttribute("class","nextButtonDisabled")}}},hideAddressBar:function(){if(this.inLaunchMode){return}if(gDevice===kDeviceMobile){var a=this.initialAddressBarScrollPerformed?0:kHideAddressBarDelay;setTimeout("window.scrollTo(0, 1);",a);this.initialAddressBarScrollPerformed=true}},updateStatisticsDisplay:function(){if(this.showStatisticsDisplay===false){return}var k=document.getElementById("statisticsDisplay");var j=gShowController.textureManager.getCacheStatistics();var a=gShowController.scriptManager.degradeStatistics;var h=gShowController.stageManager.debugGetStageStatistics();var d=gShowController.textureManager.numLoadFailures;var c=gShowController.textureManager.numOutstandingLoadRequests;var i=1024*1024;var b=gSafeMaxPixelCount/i;b=Math.floor(b*100)/100;j.numPixels/=i;h.numPixels/=i;j.numPixels=Math.floor(j.numPixels*100)/100;h.numPixels=Math.floor(h.numPixels*100)/100;var e=false;var g=false;if(j.numPixels>b){e=true;this.hasCacheEverGoneOverPixelLimit=true}if(h.numPixels>b){g=true;this.hasStageEverGoneOverPixelLimit=true}if(j.numPixels>this.cacheHighWaterMark){this.cacheHighWaterMark=j.numPixels}if(h.numPixels>this.stageHighWaterMark){this.stageHighWaterMark=h.numPixels}var f="
Cache Statistics:
- Scenes: "+j.numScenes+"
- Textures: "+j.numTextures+"
- Pixels: "+j.numPixels+" MP
- Peak Pixels: "+this.cacheHighWaterMark+" MP
%nbsp
Limits:
- Max Pixels: "+b+" MP
Scene Statistics:
- Scene Index: "+gShowController.currentSceneIndex+"
- Textures: "+h.numTextures+"
- Total Pixels: "+h.numPixels+" MP
- Peak Pixels: "+this.stageHighWaterMark+" MP
Texture Loader:
- Num Load Requests: "+(c>0?(""+c+""):"0")+"
- Num Load Failures: "+(d>0?(""+d+""):"0")+"
Degrade Statistics:
- Scenes w/Degrades: "+a.numDegradedSlides+"
- Total Textures Degraded: "+a.numDegradedTextures+"
- Max Textures/Scene: "+a.maxNumDegradedTexturesPerSlide+"
- Textures in Current: "+(h.numDegraded>0?(""+h.numDegraded+""):"0")+"
Summary:
- Cache:
- Over Pixel Limit Now: "+(e?"YES":"NO")+"
- Ever Over Pixel Limit: "+(this.hasCacheEverGoneOverPixelLimit?"YES":"NO")+"
- Stage:
- Over Pixel Limit Now: "+(g?"YES":"NO")+"
- Ever Over Pixel Limit: "+(this.hasStageEverGoneOverPixelLimit?"YES":"NO")+"
";k.innerHTML=f}}); \ No newline at end of file diff --git a/12-functions/assets/player/Help.png b/12-functions/assets/player/Help.png new file mode 100644 index 0000000..c1baecc Binary files /dev/null and b/12-functions/assets/player/Help.png differ diff --git a/12-functions/assets/player/HelpPlacardController.js b/12-functions/assets/player/HelpPlacardController.js new file mode 100644 index 0000000..54ea98a --- /dev/null +++ b/12-functions/assets/player/HelpPlacardController.js @@ -0,0 +1 @@ +var HelpPlacardController=Class.create({initialize:function(b){this.domNode=b;this.width=822;this.height=603;var a=[{key:" ",text:kHelpPlacardNavigationTitle,header:true},{key:"return/enter   space   →   ↓   shift - →   page down",text:kHelpPlacardAdvanceToNextBuild},{key:"[   shift - page up   shift - ←",text:kHelpPlacardGoBackToPreviousBuild},{key:"]   shift - page down   shift - ↓   +   =",text:kHelpPlacardAdvanceToNextSlide},{key:"←   ↑   -   shift - ↑",text:kHelpPlacardGoBackToPreviousSlide},{key:"home",text:kHelpPlacardGoToFirstSlide},{key:"end",text:kHelpPlacardGoToLastSlide},{key:"slide number + return/enter",text:kHelpPlacardGoToSpecificSlide},{key:" ",text:kHelpPlacardOtherTitle,header:true},{key:"?   /",text:kHelpPlacardShowOrHideKeyboardShortcuts},{key:"s",text:kHelpPlacardShowOrHideTheCurrentSlideNumber},{key:"esc   q",text:kHelpPlacardQuitPresentationMode}];this.helpPlacardTitleBar=new HelpPlacardTitleBar();this.helpPlacardContentPanel=new HelpPlacardContentPanel(a);this.domNode.appendChild(this.helpPlacardTitleBar.domNode);this.domNode.appendChild(this.helpPlacardContentPanel.domNode);this.isShowing=false},handleClickEvent:function(a){a=a||window.event;var b=a.target||a.srcElement;if(this.isShowing){if(browserPrefix==="ms"){a.cancelBubble=true}else{a.stopPropagation()}}this.hide()},setPosition:function(b,a){this.domNode.style.left=b+"px";this.domNode.style.top=a+"px"},show:function(){this.isShowing=true;this.domNode.style.display="block";this.domNode.style.opacity=1},hide:function(){this.isShowing=false;this.domNode.style.display="none";this.domNode.style.opacity=0},registerDragEvents:function(){this.drag=this.dragging.bindAsEventListener(this);this.dragStop=this.stopDragging.bindAsEventListener(this);Event.observe(this.domNode,"mousedown",this.startDragging.bindAsEventListener(this))},startDragging:function(a){this.startX=Event.pointerX(a);this.startY=Event.pointerY(a);this.left=parseInt(this.domNode.style.left);this.top=parseInt(this.domNode.style.top);Event.observe(document,"mousemove",this.drag);Event.observe(this.domNode,"mouseup",this.dragStop)},dragging:function(b){var a=Event.pointerX(b);var c=Event.pointerY(b);this.domNode.style.left=(a-this.startX+this.left)+"px";this.domNode.style.top=(c-this.startY+this.top)+"px";Event.stop(b)},stopDragging:function(a){Event.stopObserving(document,"mousemove",this.drag);Event.stopObserving(this.domNode,"mouseup",this.dragStop);Event.stop(a)}});var HelpPlacardTitleBar=Class.create({initialize:function(){this.domNode=document.createElement("div");this.domNode.setAttribute("class","helpPlacardTitleBar");this.closeButton=document.createElement("div");this.closeButton.setAttribute("class","helpPlacardCloseButton");this.title=document.createElement("div");this.title.setAttribute("class","helpPlacardTitle");this.title.innerHTML=kHelpPlacardMainTitle;this.domNode.appendChild(this.closeButton);this.domNode.appendChild(this.title)}});var HelpPlacardContentPanel=Class.create({initialize:function(a){this.domNode=document.createElement("div");this.domNode.setAttribute("class","helpPlacardContentPanel");for(var c=0,f=a.length;c0){this.domNode.removeChild(this.domNode.childNodes[0])}}},renderEvent:function(a){this.removeEvent();this.kpfEvent=a;this.kpfEvent.renderEvent(this.domNode)},renderEffects:function(){var a=this.kpfEvent.renderEffects(this.kpfEvent.event.effects);return a},animateEffects:function(a){this.kpfEvent.animateEffects(a)},eventOverallEndTime:function(){return this.kpfEvent.eventOverallEndTime}});var KPFEvent=Class.create({initialize:function(a){this.slideId=a.slideId;this.slideIndex=a.slideIndex;this.sceneIndex=a.sceneIndex;this.animationSupported=a.animationSupported;this.event=a.event;this.baseLayer={};this.effects=[];this.cssRenderer={};this.eventOverallEndTime=0;this.overallEndTimeInternal()},destroy:function(){this.baseLayer.destroy();this.cssRenderer.destroy();for(var a=0,b=this.effects.length;a0){for(var b=0,e=c.animations.length;b0){for(var a=0,d=c.layers.length;ad[l].beginTime+d[l].duration){d[l].duration=m.beginTime+m.duration}for(var e=0,c=m.effects.length;e0){setTimeout(this.handleEffectDidComplete.bind(this,a),(a.beginTime+a.duration)*1000)}},handleEffectDidComplete:function(b){var d=this.renderEffects(b.effects);for(var a=0,c=d.length;athis.eventOverallEndTime){this.eventOverallEndTime=b}for(var a=0,d=c.effects.length;a-1){this.isEmphasisBuild=true}if(b.movie){this.movie=b.movie}this.effects=[];this.addSubEffect(b.effects,a)},destroy:function(){for(var a=0,b=this.effects.length;a0){this.initRendererFlags(c[0])}this.domNode=document.createElement("div");this.domNode.setAttribute("id","layer"+b.layerId)},initRendererFlags:function(a){if(a.type==="transition"&&a.name!="apple:ca-swing"&&a.name!="com.apple.iWork.Keynote.BLTSwoosh"){this.enableCompositingUsingBackface=true;this.enablePreserve3DFromParent=true;if(isChrome&&(a.name==="apple:ca-push"||a.name==="com.apple.iWork.Keynote.BLTFadeThruColor")){this.enableCompositingUsingBackface=false;this.enablePreserve3DFromParent=false}}else{this.enableCompositingUsingBackface=false;this.enablePreserve3DFromParent=false}if(a.name==="apple:apple-grid"){this.isGridTransition=true}else{if(a.name==="com.apple.iWork.Keynote.BLTMosaicFlip"){this.isMosaicTransition=true}else{if(a.name==="com.apple.iWork.Keynote.BLTSwoosh"&&a.type==="transition"){this.isSwooshTransition=true}}}},destroy:function(){this.textureId=null;this.nativeWidth=null;this.nativeHeight=null;this.opacity=null;this.visibility=null;this.textureTransform=null;this.affineTransform=null;this.anchorPoint=null;this.textureAnimation=null;this.contentsRect=null;this.requiresPerspectiveTransform=null;this.sceneIndex=null;if(this.domNode.hasChildNodes()){while(this.domNode.childNodes.length>0){this.domNode.removeChild(this.domNode.firstChild)}}this.domNode=null},addAnimationNode:function(d,c,a,b){if(c==null){return d}var e=c.shift();if(e==null){return d}var g=document.createElement("div");var f=a+"-"+escapeTextureId(e);g.setAttribute("id",f);if(b.initialState.masksToBounds){setElementProperty(g,"overflow","hidden")}if(this.enableCompositingUsingBackface){setElementProperty(g,kBackfaceVisibilityPropertyName,"hidden")}else{if(this.isSwooshTransition){setElementProperty(g,kTransformPropertyName,"translateZ(0px)")}}this.setStyle(g,"0px","0px",d.style.width,d.style.height,kPositionAbsolutePropertyValue,null,null);setElementProperty(g,kTransformStylePropertyName,kTransformStylePreserve3DPropertyValue);if(b.anchorPoint.pointX!=0.5||b.anchorPoint.pointY!=0.5){setElementProperty(g,kTransformOriginPropertyName,(b.anchorPoint.pointX*100)+"% "+(b.anchorPoint.pointY*100)+"%")}if(b.transformOriginZValue!=""&&e!="opacity"&&e!="doubleSided"){if(e!="anchorPointZ"){if(Prototype.Browser.Gecko){setElementProperty(g,kTransformOriginPropertyName,(b.anchorPoint.pointX*100)+"% "+(b.anchorPoint.pointY*100)+"% "+b.transformOriginZValue+"px")}else{setElementProperty(g,kTransformOriginZPropertyName,b.transformOriginZValue+"px");if(navigator.userAgent.lastIndexOf("Chrome/")<=0){setElementProperty(g,kTransformPropertyName,"translateZ("+b.transformOriginZValue+"px)")}}}}d.appendChild(g);return this.addAnimationNode(g,c,a,b)},createNodes:function(a,c,b){var d=this.addNode(a,c,b);return d},addNode:function(o,s,d){var t="layer"+d.layerId;var K=document.createElement("div");K.setAttribute("id",t);setElementProperty(K,"pointer-events","none");var B=d.contentsRect.x;var A=d.contentsRect.y;var C=d.contentsRect.width;var J=d.contentsRect.height;var R=d.affineTransform[0];var P=d.affineTransform[1];var O=d.affineTransform[2];var N=d.affineTransform[3];var M=d.affineTransform[4];var L=d.affineTransform[5];var r="matrix("+R+","+P+","+O+","+N+","+(M+d.bounds.offset.pointX)+","+(L+d.bounds.offset.pointY)+")";this.setStyle(K,"0px","0px",d.bounds.width+"px",d.bounds.height+"px",kPositionAbsolutePropertyValue,d.opacity,d.visibility);setElementProperty(K,kTransformPropertyName,r);if(d.anchorPoint.pointX!=0.5||d.anchorPoint.pointY!=0.5){setElementProperty(K,kTransformOriginPropertyName,(d.anchorPoint.pointX*100)+"% "+(d.anchorPoint.pointY*100)+"%")}if(d.initialState.masksToBounds){setElementProperty(K,"overflow","hidden")}o.appendChild(K);var u;if(this.animationSupported){u=this.addAnimationNode(K,d.divNames,t,d)}else{u=K}if(d.isTransition&&this.enablePreserve3DFromParent){if(s.sublayerTransform[11]!=0){setElementProperty(K,kTransformStylePropertyName,kTransformStylePreserve3DPropertyValue)}if(d.sublayerTransform[11]!=0){setElementProperty(K,kPerspectivePropertyName,gShowController.stageManager.perspective+"px");setElementProperty(K,kTransformStylePropertyName,kTransformStylePreserve3DPropertyValue)}}else{if(s.sublayerTransform[11]!=0){setElementProperty(o,kPerspectivePropertyName,gShowController.stageManager.perspective+"px");setElementProperty(K,kTransformStylePropertyName,kTransformStylePreserve3DPropertyValue)}else{setElementProperty(K,kTransformStylePropertyName,kTransformStyleFlatPropertyValue)}}if(isChrome){if(this.enableCompositingUsingBackface){setElementProperty(K,kBackfaceVisibilityPropertyName,"hidden")}else{if(this.isSwooshTransition){setElementProperty(K,kTransformPropertyName,"translateZ(0px)")}}}var z=d.textureId;if(z){var v;var e;if(d.hasContentsAnimation){var Q=d.cssAnimation.animations;for(var l=0,G=Q.length;l=10){var e=d.getElementsByTagName("feGaussianBlur");if(e){var b=f.getElementsByTagName("feGaussianBlur");for(var a=0,c=e.length;ac.duration){c.duration=b.cssAnimation.overallEndTime}}for(var a=0,d=b.layers.length;a0){var g=j?"layer"+j.layerId:"layer"+a.layerId;var d=document.getElementById(g);if(d){this.applyCssAnimation(d,a,j)}}else{if(a.hasMovie&&a.animationInfo.name==="renderMovie"){var n=document.getElementById(a.movieId);if(e){if(e.loopMode&&e.loopMode==="looping"){n.loop=true}if(e.volume){n.volume=e.volume}}this.startMovie(n)}if(j){var b=document.getElementById("layer"+j.layerId);var k=window.getComputedStyle(b,null);var l=k.getPropertyValue(kTransformPropertyName);var f=parseTransformMatrix(l);var m="matrix("+f[0]+","+f[1]+","+f[2]+","+f[3]+","+a.bounds.offset.pointX+","+a.bounds.offset.pointY+")";if(o.name==="apple:action-motion-path"){setElementProperty(b,kTransformPropertyName,m)}}}for(var h=0,c=a.layers.length;h0){if(isIE){for(var S=0,z=q.cssRules.length;S0){Y=kTransformPropertyName;R="translateZ("+-d.transformOriginZValue+"px)"}else{Y=kTransformPropertyName;R="translateZ("+d.transformOriginZValue+"px)"}}}if(B!=="hidden"){setElementProperty(b,Y,R)}setElementProperty(b,kAnimationFillModePropertyName,E.fillMode==="removed"?"none":E.fillMode);setElementProperty(b,kAnimationNamePropertyName,K);setElementProperty(b,kAnimationDurationPropertyName,h)}}},cssPropertyValueForActionValue:function(a,b){switch(a){case"hidden":if(b.scalar===true){return"hidden"}else{return"visible"}case"anchorPoint":return b.pointX+"% "+b.pointY+"%";case"anchorPointZ":return b.scalar;case"position":return"translate("+b.pointX+"px,"+b.pointY+"px)";case"zPosition":return"translateZ("+b.scalar+"px)";case"translationEmphasis":return"translateX("+b.translationEmphasis[0]+"px) translateY("+b.translationEmphasis[1]+"px) translateZ("+b.translationEmphasis[2]+")";case"rotationEmphasis":return"rotateZ("+b.rotationEmphasis[6]+"rad)";case"scaleEmphasis":return"scale3d("+ensureScaleFactorNotZero(b.scaleEmphasis[3])+","+ensureScaleFactorNotZero(b.scaleEmphasis[4])+","+ensureScaleFactorNotZero(b.scaleEmphasis[5])+")";case"transform.scale":case"transform.scale.xy":return"scale("+ensureScaleFactorNotZero(b.scalar)+")";case"transform.scale.x":return"scaleX("+ensureScaleFactorNotZero(b.scalar)+")";case"transform.scale.y":return"scaleY("+ensureScaleFactorNotZero(b.scalar)+")";case"transform.rotation.x":return"rotateX("+b.scalar+"rad)";case"transform.rotation.y":return"rotateY("+b.scalar+"rad)";case"transform.rotation.z":case"transform.rotation":return"rotateZ("+b.scalar+"rad)";case"transform.translation":return"translateX("+b.pointX+"px) translateY("+b.pointY+"px)";case"transform.translation.x":return"translateX("+b.scalar+"px)";case"transform.translation.y":return"translateY("+b.scalar+"px)";case"transform.translation.z":return"translateZ("+b.scalar+"px)";case"isPlaying":case"opacity":case"opacityMultiplier":return b.scalar+"";case"transform":return"matrix3d("+b.transform+")";case"doubleSided":if(b.scalar===false){return"hidden"}else{return"visible"}default:return"some value"}},cssPropertyNameForAction:function(a){switch(a){case"hidden":return kVisibilityPropertyName;case"anchorPoint":return kTransformOriginPropertyName;case"anchorPointZ":return kTransformOriginZPropertyName;case"opacityMultiplier":return kOpacityPropertyName;case"translationEmphasis":case"rotationEmphasis":case"scaleEmphasis":case"position":case"zPosition":case"transform":case"transform.scale":case"transform.scale.xy":case"transform.scale.x":case"transform.scale.y":case"transform.rotation.x":case"transform.rotation.y":case"transform.rotation.z":case"transform.rotation":case"transform.translation":case"transform.translation.x":case"transform.translation.y":case"transform.translation.z":case"bounds":return kTransformPropertyName;case"doubleSided":return kBackfaceVisibilityPropertyName;case"contents":return kBackgroundImagePropertyName;default:return a}},hideMoviePoster:function(a){a.style.visibility="hidden"},handleMovieDidStart:function(a,b){b.style.visibility="visible";setTimeout(this.hideMoviePoster.bind(this,a),120)},handleMovieDidEnd:function(a,b){if(!b.loop){b.isEnded=true}},startMovie:function(a){if(a){a.play();a.isPlaying=true}},stopMovie:function(a){if(a){a.pause()}}});var KPFLayer=Class.create({initialize:function(c,d,b){this.animationInfo=d;this.layerId=kpfLayerCounter;kpfLayerCounter=kpfLayerCounter+1;this.objectID=c.objectID!=null?c.objectID:null;this.textureId=c.texture?c.texture:null;this.animations=c.animations;this.initialState=c.initialState;this.cssAnimationRules=[];this.layers=[];this.affineTransform=this.initialState.affineTransform;this.position=this.initialState.position;this.textureTransform="";if(this.initialState.transform!=null&&this.initialState.transform!=undefined){this.textureTransform="matrix3D("+this.initialState.transform+")"}else{this.textureTransform="matrix("+this.affineTransform+")"}this.anchorPoint=this.initialState.anchorPoint;if(b==null){b={pointX:0,pointY:0}}var a=this.position.pointX-this.initialState.width/2-(this.anchorPoint.pointX-0.5)*this.initialState.width;var e=this.position.pointY-this.initialState.height/2-(this.anchorPoint.pointY-0.5)*this.initialState.height;a=Math.round(a*1000000)/1000000;e=Math.round(e*1000000)/1000000;this.bounds={width:this.initialState.width,height:this.initialState.height,origin:{pointX:this.affineTransform[4],pointY:this.affineTransform[5]},offset:{pointX:a,pointY:e},canvasOffset:{pointX:a+b.pointX,pointY:e+b.pointY}};this.sublayerTransform=this.initialState.sublayerTransform;this.contentsRect=this.initialState.contentsRect;this.hidden=this.initialState.hidden;this.opacity=this.initialState.opacity;this.visibility=this.hidden===true?"hidden":"visible";this.addSublayer(c.layers,d,this.bounds.offset);if(d.animationSupported){this.initLayerAnimations()}},destroy:function(){this.initialState=null;this.cssAnimationRules=null;this.affineTransform=null;this.textureTransform=null;this.anchorPoint=null;this.anchorPointZ=null;this.bounds=null;this.contentsRect=null;this.hidden=null;this.opacity=null},addSublayer:function(f,e,d){for(var a=0,b=f.length;a0){this.cssAnimation=new KPFCssAnimation(this.animations,this)}if(this.cssAnimation){this.divNames=[];var p={isPlaying:0,opacityMultiplier:1,hidden:2};for(var x in this.cssAnimation.keyAnimations){if(!p.hasOwnProperty(x)){if(x=="opacity"){h=true;if(this.isActionBuild){for(var t=0,j=this.layers.length;tthis.overallEndTime){this.overallEndTime=w}if(d=="custom"){H=F.timingControlPoint1x;G=F.timingControlPoint1y;l=F.timingControlPoint2x;f=F.timingControlPoint2y}if(F.animations!=null&&F.animations.length>0){var q=F.animations;var p=v;if(q[0].property==null){p=q[0].beginTime;q=q[0].animations}for(var z=0,e=q.length;zB.latestEndTime){B.latestEndTime=p+a.beginTime+a.duration}if(a.path){var E=F.path.length;for(var x=0;CB.latestEndTime){B.latestEndTime=F.beginTime+F.duration}if(F.path){var E=F.path.length;for(var x=0;x0){l=100*d/this.overallEndTime;j=100*g/this.overallEndTime}if(j>100){j=100}var f={startKeyframe:l,endKeyframe:j,from:c.from,to:c.to,timingFunction:c.timingFunction};if(c.fillMode){f.fillMode=c.fillMode}if(c.timingFunction=="custom"){f.timingControlPoint1x=c.timingControlPoint1x;f.timingControlPoint1y=c.timingControlPoint1y;f.timingControlPoint2x=c.timingControlPoint2x;f.timingControlPoint2y=c.timingControlPoint2y}m.push(f);m.sort(this.sortAction)}},sortAction:function(b,a){return b.startKeyframe-a.startKeyframe},roundNum:function(a){return Math.round(a*this.kRoundingFactor)/this.kRoundingFactor},createAnimationRules:function(w){var f=this.kDelta;for(var h in this.keyAnimations){if(h=="playing"){continue}var q=this.keyAnimations[h];var g=q.keyActions;var j=false;q.keyframes=[];var o=g[0];var s=this.roundNum(o.startKeyframe);var m=this.roundNum(100*q.groupBeginTime/this.overallEndTime);if(h=="anchorPoint"){var c={};c.x=o.to.pointX;c.y=o.to.pointY;var n={pointX:-(o.from.pointX-w.anchorPoint.pointX)*w.bounds.width,pointY:-(o.from.pointY-w.anchorPoint.pointY)*w.bounds.height};if(w.isMagicMove){var u=this.anchorPointOffset(w,{x:o.from.pointX,y:o.from.pointY});var k={pointX:u.x,pointY:u.y};var d=this.anchorPointOffset(w,{x:o.to.pointX,y:o.to.pointY});var v={pointX:d.x,pointY:d.y};if(k.pointX!==v.pointX||k.pointY!=v.pointY){n={pointX:v.pointX-k.pointX,pointY:v.pointY-k.pointY};w.magicMoveOffsetValue=n}}if(s!=0){var t={pointX:0,pointY:0};if(m>0){this.insertInitialKeyframes(q,m-f,"position",t)}if(s-m>f){if(o.fillMode==="both"||o.fillMode==="backwards"){t=n}q.keyframes.push({keyframe:m,keyName:"position",value:t,timingFunction:"linear"});q.keyframes.push({keyframe:s-f,keyName:"position",value:t,timingFunction:"linear"})}}q.keyframes.push({keyframe:s,keyName:"position",value:n,timingFunction:"linear"});q.keyframes.push({keyframe:100,keyName:"position",value:n,timingFunction:"linear"});w.transformOriginValue=(c.x*100)+"% "+(c.y*100)+"%";continue}if(h=="anchorPointZ"){j=true;if(s!=0){var t=this.createInitialKeyframeValue(w,h,o.from,true);q.keyframes.push({keyframe:0,keyName:"zPosition",value:t,timingFunction:"linear"});q.keyframes.push({keyframe:s-f,keyName:"zPosition",value:t,timingFunction:"linear"})}q.keyframes.push({keyframe:s,keyName:"zPosition",value:o.from,timingFunction:"linear"});q.keyframes.push({keyframe:100,keyName:"zPosition",value:o.to,timingFunction:"linear"});w.transformOriginZValue=o.to.scalar;continue}if(o==null){continue}var l=0;var r=null;var e=null;if(s!=0){if(h==="hidden"){e={scalar:w.hidden};this.insertInitialKeyframes(q,s-f,h,e)}else{if(h==="opacity"){if(o.fillMode==="both"||o.fillMode==="backwards"){e=o.from}else{e={scalar:w.opacity}}this.insertInitialKeyframes(q,s-f,h,e)}else{if(h==="position"){if(w.isBuildIn||w.isBuildOut){if(m>0){e={pointX:0,pointY:0}}else{e={pointX:this.roundNum(o.from.pointX-w.initialState.position.pointX),pointY:this.roundNum(o.from.pointY-w.initialState.position.pointY)}}}else{e={pointX:0,pointY:0}}this.insertInitialKeyframes(q,s-f,h,e)}else{e=this.createInitialKeyframeValue(w,h,o.from,j);if(m>0){this.insertInitialKeyframes(q,m-f,h,e)}if(s-m>f){if(o.fillMode==="both"||o.fillMode==="backwards"){e=o.from}if(h==="transform.translation"){e.pointX=this.roundNum(e.pointX);e.pointY=this.roundNum(e.pointY)}q.keyframes.push({keyframe:m,keyName:h,value:e,timingFunction:"linear"});q.keyframes.push({keyframe:s-f,keyName:h,value:e,timingFunction:"linear"})}}}}l=o.startKeyframe;r=e}for(var p=0,b=g.length;pf){q.keyframes.push({keyframe:this.roundNum(o.startKeyframe)-f,keyName:h,value:r,timingFunction:"linear"})}if(h==="transform.translation"){o.from.pointX=this.roundNum(o.from.pointX);o.from.pointY=this.roundNum(o.from.pointY);o.to.pointX=this.roundNum(o.to.pointX);o.to.pointY=this.roundNum(o.to.pointY)}var a=this.createTimingFunctionForAction(o);q.keyframes.push({keyframe:this.roundNum(o.startKeyframe),keyName:h,value:o.from,timingFunction:a});q.keyframes.push({keyframe:this.roundNum(o.endKeyframe)-(o.endKeyframe==100?0:f),keyName:h,value:o.to,timingFunction:a});r=o.to;l=o.endKeyframe}if(l!=100&&h!="hidden"){q.keyframes.push({keyframe:this.roundNum(l),keyName:h,value:r,timingFunction:"linear"});q.keyframes.push({keyframe:100,keyName:h,value:r,timingFunction:"linear"})}}},insertInitialKeyframes:function(b,c,d,a){b.keyframes.push({keyframe:0,keyName:d,value:a,timingFunction:"linear"});b.keyframes.push({keyframe:c,keyName:d,value:a,timingFunction:"linear"})},anchorPointOffset:function(c,e){var a={};var b={};var f={};var d=c.bounds;a.x=d.width/2;a.y=d.height/2;b.x=e.x*d.width;b.y=e.y*d.height;f.x=(a.x-b.x);f.y=(a.y-b.y);return f},createInitialKeyframeValue:function(a,c,e,b){var d={};switch(c){case"anchorPoint":d.pointX=(a.anchorPoint.pointX-0.5)*a.bounds.width;d.pointY=(a.anchorPoint.pointY-0.5)*a.bounds.height;break;case"anchorPointZ":if(Prototype.Browser.Gecko||Prototype.Browser.IE||isChrome||isIE||isEdge){d.scalar=0}else{d.scalar=e.scalar+e.scalar}break;case"opacity":case"opacityMultiplier":d.scalar=a.opacity;break;case"hidden":d.scalar=a.hidden;break;case"position":d.pointX=a.affineTransform[4];d.pointY=a.affineTransform[5];break;case"zPosition":d.scalar=0;break;case"transform.scale":case"transform.scale.xy":case"transform.scale.x":case"transform.scale.y":d.scalar=a.initialState.scale;break;case"transform.rotation.z":d.scalar=a.initialState.rotation;case"transform":d.transform=e.transform;break;case"bounds":d.pointX=0;d.pointY=0;d.width=a.initialState.width;d.height=a.initialState.height;break;default:d.scalar=0;d.pointX=0;d.pointY=0;break}return d},createTimingFunctionForAction:function(b){var a="";switch(b.timingFunction){case"easeIn":a="ease-in";break;case"easeOut":a="ease-out";break;case"easeInOut":case"easeInEaseOut":a="ease-in-out";break;case"custom":a="cubic-bezier("+b.timingControlPoint1x+","+b.timingControlPoint1y+","+b.timingControlPoint2x+","+b.timingControlPoint2y+")";break;case"linear":a="linear";break;default:a="linear";break}return a},createAnimationRuleForKeyframes:function(d){for(var n in this.keyAnimations){var f=this.keyAnimations[n];var e="layer"+d.layerId+"-"+escapeTextureId(n);var b;var h="";var o;if(n==="contents"){var m=this.roundNum(f.keyActions[0].startKeyframe);b=gShowController.animationManager.createAnimation(e+"-from");var l="0% {opacity: 1; "+kAnimationTimingFunctionPropertyName+": linear;}";var k="49.999% {opacity: 1; "+kAnimationTimingFunctionPropertyName+": linear;}";var j="50% {opacity: 0; "+kAnimationTimingFunctionPropertyName+": linear;}";var g="100% {opacity: 0; "+kAnimationTimingFunctionPropertyName+": linear;}";if(m!==0){k=((100-m)/2+m-this.kDelta)-this.kDelta+"% {opacity: 1; "+kAnimationTimingFunctionPropertyName+": linear;}";j=((100-m)/2+m)+"% {opacity: 0; "+kAnimationTimingFunctionPropertyName+": linear;}"}if(b.insertRule){b.insertRule(l);b.insertRule(k);b.insertRule(j);b.insertRule(g)}else{b.appendRule(l);b.appendRule(k);b.appendRule(j);b.appendRule(g)}b=gShowController.animationManager.createAnimation(e+"-to");l="0% {opacity: 0; "+kAnimationTimingFunctionPropertyName+": linear;}";k="49.999% {opacity: 0; "+kAnimationTimingFunctionPropertyName+": linear;}";j="50% {opacity: 1; "+kAnimationTimingFunctionPropertyName+": linear;}";g="100% {opacity: 1; "+kAnimationTimingFunctionPropertyName+": linear;}";if(m!==0){k=((100-m)/2+m-this.kDelta)-this.kDelta+"% {opacity: 0; "+kAnimationTimingFunctionPropertyName+": linear;}";j=((100-m)/2+m)+"% {opacity: 1; "+kAnimationTimingFunctionPropertyName+": linear;}"}if(b.insertRule){b.insertRule(l);b.insertRule(k);b.insertRule(j);b.insertRule(g)}else{b.appendRule(l);b.appendRule(k);b.appendRule(j);b.appendRule(g)}continue}if(!isIE){b=gShowController.animationManager.createAnimation(e);for(var c=0,a=f.keyframes.length;c=10){for(var c=0,a=f.keyframes.length;c0)){return"translateZ("+-c.scalar+"px)"}else{return"translateZ("+c.scalar+"px)"}case"translationEmphasis":return"translateX("+c.translationEmphasis[0]+"px) translateY("+c.translationEmphasis[1]+"px) translateZ("+c.translationEmphasis[2]+")";case"rotationEmphasis":return"rotateZ("+c.rotationEmphasis[6]+"rad)";case"scaleEmphasis":return"scale3d("+ensureScaleFactorNotZero(c.scaleEmphasis[3])+","+ensureScaleFactorNotZero(c.scaleEmphasis[4])+","+ensureScaleFactorNotZero(c.scaleEmphasis[5])+")";case"transform.scale":case"transform.scale.xy":return"scale("+ensureScaleFactorNotZero(c.scalar)+")";case"transform.scale.x":return"scaleX("+ensureScaleFactorNotZero(c.scalar)+")";case"transform.scale.y":return"scaleY("+ensureScaleFactorNotZero(c.scalar)+")";case"transform.rotation.x":return"rotateX("+c.scalar+"rad)";case"transform.rotation.y":return"rotateY("+c.scalar+"rad)";case"transform.rotation.z":case"transform.rotation":return"rotateZ("+c.scalar+"rad)";case"transform.translation":return"translateX("+c.pointX+"px) translateY("+c.pointY+"px)";case"transform.translation.x":return"translateX("+c.scalar+"px)";case"transform.translation.y":return"translateY("+c.scalar+"px)";case"transform.translation.z":return"translateZ("+c.scalar+"px)";case"isPlaying":case"opacity":case"opacityMultiplier":return c.scalar+"";case"transform":return"matrix3d("+c.transform+")";case"doubleSided":if(c.scalar==false){return"hidden"}else{return"visible"}case"contents":return c.texture;default:return"some value"}},cssPropertyNameForAction:function(a){switch(a){case"hidden":return kVisibilityPropertyName;case"anchorPoint":return kTransformOriginPropertyName;case"anchorPointZ":return kTransformOriginZPropertyName;case"opacityMultiplier":return kOpacityPropertyName;case"translationEmphasis":case"rotationEmphasis":case"scaleEmphasis":case"position":case"zPosition":case"transform":case"transform.scale":case"transform.scale.xy":case"transform.scale.x":case"transform.scale.y":case"transform.rotation.x":case"transform.rotation.y":case"transform.rotation.z":case"transform.rotation":case"transform.translation":case"transform.translation.x":case"transform.translation.y":case"transform.translation.z":case"bounds":return kTransformPropertyName;case"doubleSided":return kBackfaceVisibilityPropertyName;case"contents":return kBackgroundImagePropertyName;default:return a}}}); \ No newline at end of file diff --git a/12-functions/assets/player/KeynoteDHTMLPlayer.css b/12-functions/assets/player/KeynoteDHTMLPlayer.css new file mode 100644 index 0000000..fe46bef --- /dev/null +++ b/12-functions/assets/player/KeynoteDHTMLPlayer.css @@ -0,0 +1,786 @@ +* { + -webkit-user-select:none; + -moz-user-select:none; + -ms-user-select:none; +} + +/* Body */ + +body +{ + overflow: hidden; + margin: 0; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} + +@media screen and (max-device-width: 1025px) +{ + body + { + background-color: black; + } +} + +div.bigBlackSquare +{ + position: absolute; + top: 0px; + left: 0px; + width: 1024px; + height: 1024px; + visibility: hidden; + background-color: black; +} + +/* Debug Status Display */ + +div#statisticsDisplay +{ + position: absolute; + color : white; + background-color: grey; + visibility: hidden; +} + +/* Stage */ + +div#stageArea +{ + position: absolute; + visibility: hidden; + overflow: hidden; +} + +div.stage +{ + position: absolute; + top: 0; + left: 0; + overflow: visible; +} + +/* Hyperlinke Plane */ + +div#hyperlinkPlane +{ + visibility: hidden; + pointer-events: none; +} + +div.hyperlink +{ + position: absolute; + cursor: pointer; +} + +/* iPhone Controls Section */ + +div#previousButton +{ + position: absolute; + background-repeat: no-repeat; + background-position: center center; + visibility: hidden; + width: 22px; + height: 27px; +} + +div.previousButtonEnabled +{ + background-image: url('left_arrow_mobile_n.png'); + background-size: 22px 27px; + width: 22px; + height: 27px; +} + +div.previousButtonDisabled +{ + background-image: url('left_arrow_mobile_d.png'); + background-size: 22px 27px; + -webkit-tap-highlight-color: rgba(0,0,0,0); + -moz-tap-highlight-color: rgba(0,0,0,0); + -ms-tap-highlight-color: rgba(0,0,0,0); + width: 22px; + height: 27px; +} + +div#nextButton +{ + position: absolute; + background-repeat: no-repeat; + background-position: center center; + visibility: hidden; + background-size: 22px 27px; + width: 22px; + height: 27px; +} + +div.nextButtonEnabled +{ + background-image: url('right_arrow_mobile_n.png'); + background-size: 22px 27px; + width: 22px; + height: 27px; +} + +div.nextButtonDisabled +{ + background-image: url('right_arrow_mobile_d.png'); + background-size: 22px 27px; + -webkit-tap-highlight-color: rgba(0,0,0,0); + -moz-tap-highlight-color: rgba(0,0,0,0); + -ms-tap-highlight-color: rgba(0,0,0,0); + width: 22px; + height: 27px; +} + +/* Navigator */ + +div#slideshowNavigator { + -webkit-tap-highlight-color: rgba(0,0,0,0); + -moz-tap-highlight-color: rgba(0,0,0,0); + -ms-tap-highlight-color: rgba(0,0,0,0); + position: absolute; + overflow: hidden; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: 12px; + line-height: 18px; + background-color: rgba(0,0,0,0); + color: 232323; + top: 0px; + left: 0px; + bottom: 0px; + width: 140px; +} + +div.navigatorLeftSidebar { + position: absolute; + overflow-x: hidden; + overflow-y: hidden; + top: 0px; + left: 0px; + bottom: 0px; + width: 30px; + background-color: rgba(0,0,0,0); +} + +div.navigatorThumbnailSidebar { + position: absolute; + overflow-x: hidden; + overflow-y: hidden; + border-right: 1px solid #676767; + background-color: #000; + top: 0px; + left: -140px; + bottom: 0px; + width: 129px; + -webkit-transition-property: left; + -webkit-transition-duration: 300ms; + -moz-transition-property: left; + -moz-transition-duration: 300ms; + -ms-transition-property: left; + -ms-transition-duration: 300ms; +} + +div.navigatorThumbnailScroller { + position: absolute; + overflow-x: hidden; + overflow-y: auto; + top: 0px; + left: 0px; + bottom: 0px; + width: 129px; +} + +div.navigatorThumbnailScroller::-webkit-scrollbar { + width: 7px; +} + +div.navigatorThumbnailScroller::-webkit-scrollbar-thumb { + background: rgba(255,255,255,0.4); + -webkit-border-radius: 10px; +} + +div.navigatorThumbnailSelection { + position: absolute; + border-top-style: none; + border-left-style: none; + border-right-style: none; + display: none; + background-color: rgba(125,125,125,0.5); + top: 0px; + width: 100%; + height: 76px; +} + +div.navigatorThumbnailContainer { + position: absolute; + top: 0px; + left: 0px; + bottom: auto; + width: 119px; +} + +div.navigatorThumbnailItem { + position: absolute; + top: 0px; + left: 0px; + width: 119px; + height: 76px; + cursor: default; +} + +div.navigatorThumbnailItemCanvasContainer { + position: absolute; + max-height: 90px; + border: 1px solid rgba(255,255,255,0.68); + -webkit-box-shadow: 0px 2px 4px rgba(0,0,0,0.5); + -moz-box-shadow: 0px 2px 4px rgba(0,0,0,0.5); + -ms-box-shadow: 0px 2px 4px rgba(0,0,0,0.5); + background-color: #444; + width: 88px; + height: 66px; +} + +/* Slide Number Control */ + +div#slideNumberControl { + position: absolute; + overflow: hidden; + display: none; + opacity: 0; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: 12px; + background-color: rgba(0,0,0,0.75); + color: white; + width: 120px; + height: 110px; + text-align: center; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; +} + +div.slideNumberLabel { + position: relative; + margin-left:16px; + margin-right:16px; + margin-top: 16px; + width: 88px; + height:33px; + font-weight: bold; +} + +div.slideNumberDigit { + position: relative; + margin-left:auto; + margin-right:auto; + font-size:40px; + width: 88px; + height:39px; +} + +/* Slide Number Display */ + +div#slideNumberDisplay { + position: absolute; + overflow: hidden; + display: none; + opacity: 0; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: 12px; + background-color: rgba(0,0,0,0.75); + color: white; + width: 100px; + height: 100px; + text-align: center; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; +} + +div.slideNumberDisplayDigit { + position: relative; + margin-top:24px; + margin-left:auto; + margin-right:auto; + font-size:40px; + width: 88px; + height:39px; +} + +/* Help Placard Display */ + +div#helpPlacard { + display: none; + position: absolute; + overflow: hidden; + opacity: 0; + font-family: Helvetica, Arial, sans-serif; + font-size: 14px; + background-color: rgba(20,20,20,0.95); + color: white; + width: 822px; + height: 603px; + text-align: center; + border-radius: 12px 12px 12px 12px; + -webkit-border-radius: 12px 12px 12px 12px; + -moz-border-radius: 12px 12px 12px 12px; + -ms-border-radius: 12px 12px 12px 12px; + line-height:40px; + box-shadow: 0px 0px 40px black; + -webkit-box-shadow: 0px 0px 40px black; + -moz-box-shadow: 0px 0px 40px black; +} + +div.helpPlacardTitleBar { + /*position:absolute;*/ + font-size: 22px; + color: rgba(120,120,120,1); + font-family: Helvetica, Arial, sans-serif; + width: 822px; + height: 40px; + border-radius: 12px 12px 0 0; + -webkit-border-radius: 12px 12px 0 0; + -moz-border-radius: 12px 12px 0 0; + -ms-border-radius: 12px 12px 0 0; + border-bottom: 1px black solid; +} + +div.helpPlacardTitle { + padding-top:4px; + height:40px; +} + +div.helpPlacardCloseButton { + cursor:default; + top:10px; + left:10px; + position:absolute; + background:url('close_n@2x.png') no-repeat 0 0; + background-size: 21px 21px; + width:21px; + height:21px; +} + +div.helpPlacardCloseButton:hover { + background:url('close_hi@2x.png') no-repeat 0 0; + background-size: 21px 21px; +} + +div.helpPlacardCloseButton:active { + background:url('close_p@2x.png') no-repeat 0 0; + background-size: 21px 21px; +} + +div.helpPlacardContentPanel { + width: 822px; + height: 310px; +} + +div.helpPlacardHeader { + color: rgba(255,255,255,1); + font-weight: bold; + width:822px; + height:40px; + border-bottom: 1px white solid; +} + +div.helpPlacardHeader { + color: rgba(255,255,255,1); + font-weight: bold; + width:822px; + height:40px; + border-bottom: 1px black solid; +} + +div.helpPlacardItem { + width:822px; + height:40px; + border-bottom: 1px black solid; +} + +div.helpPlacardLeftHeaderItem { + /*position:absolute;*/ + color: white; + text-align:right; + float:left; + width:400px; +} + +div.helpPlacardLeftItem { + color: rgba(120,120,120,1); + text-align:right; + float:left; + width:400px; + border-right: 1px black solid; +} + +div.helpPlacardRightItem { + text-align:left; + float:right; + width:400px; +} + +/* iPad assets */ + +@media all and (min-device-width: 481px) and (max-device-width: 1024px) { + div#previousButton + { + background-size: 44px 54px; + width: 44px; + height: 54px; + } + + div#nextButton + { + background-size: 44px 54px; + width: 44px; + height: 54px; + } + + div.previousButtonEnabled + { + background-size: 44px 54px; + width: 44px; + height: 54px; + background-image: static_url('left_arrow_mobile_n-hd.png'); + } + + div.previousButtonDisabled + { + background-size: 44px 54px; + width: 44px; + height: 54px; + background-image: static_url('left_arrow_mobile_d-hd.png'); + } + + div.nextButtonEnabled + { + background-size: 44px 54px; + width: 44px; + height: 54px; + background-image: static_url('right_arrow_mobile_n-hd.png'); + } + + div.nextButtonDisabled + { + background-size: 44px 54px; + width: 44px; + height: 54px; + background-image: static_url('right_arrow_mobile_d-hd.png'); + } +} + +/* Retina display assets */ + +@media all and (-webkit-min-device-pixel-ratio:2) { + div.previousButtonEnabled + { + background-image: static_url('left_arrow_mobile_n-hd.png'); + } + + div.previousButtonDisabled + { + background-image: static_url('left_arrow_mobile_d-hd.png'); + } + + div.nextButtonEnabled + { + background-image: static_url('right_arrow_mobile_n-hd.png'); + } + + div.nextButtonDisabled + { + background-image: static_url('right_arrow_mobile_d-hd.png'); + } +} + +div#slideCounter +{ + position: absolute; + display: table-cell; + text-align: center; + vertical-align: middle; + font-family: Helvetica; + font-size: 23px; + color: #FFFFFF; + text-shadow: 0.0em 0.2em #000000; + visibility: hidden; +} + +#helpText +{ + position: absolute; + text-align: center; + font-family: Helvetica; + font-size: 13px; + color: #838383; + text-shadow: 0.0em 0.2em #000000; + visibility: hidden; +} + +/* Waiting Indicator */ + +@-webkit-keyframes spinnerAnimationRotate { + 0% { + -webkit-transform: rotate( 0deg); + } + 8.332% { + -webkit-transform: rotate( 0deg); + } + 8.333% { + -webkit-transform: rotate( 30deg); + } + 16.666% { + -webkit-transform: rotate( 30deg); + } + 16.667% { + -webkit-transform: rotate( 60deg); + } + 24.999% { + -webkit-transform: rotate( 60deg); + } + 25% { + -webkit-transform: rotate( 90deg); + } + 33.333% { + -webkit-transform: rotate( 90deg); + } + 33.334% { + -webkit-transform: rotate(120deg); + } + 41.666% { + -webkit-transform: rotate(120deg); + } + 41.667% { + -webkit-transform: rotate(150deg); + } + 49.999% { + -webkit-transform: rotate(150deg); + } + 50% { + -webkit-transform: rotate(180deg); + } + 58.333% { + -webkit-transform: rotate(180deg); + } + 58.334% { + -webkit-transform: rotate(210deg); + } + 66.666% { + -webkit-transform: rotate(210deg); + } + 66.667% { + -webkit-transform: rotate(240deg); + } + 74.999% { + -webkit-transform: rotate(240deg); + } + 75% { + -webkit-transform: rotate(270deg); + } + 83.333% { + -webkit-transform: rotate(270deg); + } + 83.334% { + -webkit-transform: rotate(300deg); + } + 91.666% { + -webkit-transform: rotate(300deg); + } + 91.667% { + -webkit-transform: rotate(330deg); + } + 99.999% { + -webkit-transform: rotate(330deg); + } + 100% { + -webkit-transform: rotate(360deg); + } +} + +@-moz-keyframes spinnerAnimationRotate { + 0% { + -moz-transform: rotate( 0deg); + } + 8.332% { + -moz-transform: rotate( 0deg); + } + 8.333% { + -moz-transform: rotate( 30deg); + } + 16.666% { + -moz-transform: rotate( 30deg); + } + 16.667% { + -moz-transform: rotate( 60deg); + } + 24.999% { + -moz-transform: rotate( 60deg); + } + 25% { + -moz-transform: rotate( 90deg); + } + 33.333% { + -moz-transform: rotate( 90deg); + } + 33.334% { + -moz-transform: rotate(120deg); + } + 41.666% { + -moz-transform: rotate(120deg); + } + 41.667% { + -moz-transform: rotate(150deg); + } + 49.999% { + -moz-transform: rotate(150deg); + } + 50% { + -moz-transform: rotate(180deg); + } + 58.333% { + -moz-transform: rotate(180deg); + } + 58.334% { + -moz-transform: rotate(210deg); + } + 66.666% { + -moz-transform: rotate(210deg); + } + 66.667% { + -moz-transform: rotate(240deg); + } + 74.999% { + -moz-transform: rotate(240deg); + } + 75% { + -moz-transform: rotate(270deg); + } + 83.333% { + -moz-transform: rotate(270deg); + } + 83.334% { + -moz-transform: rotate(300deg); + } + 91.666% { + -moz-transform: rotate(300deg); + } + 91.667% { + -moz-transform: rotate(330deg); + } + 99.999% { + -moz-transform: rotate(330deg); + } + 100% { + -moz-transform: rotate(360deg); + } +} + +@-ms-keyframes spinnerAnimationRotate { + 0% { + -ms-transform: rotate( 0deg); + } + 8.332% { + -ms-transform: rotate( 0deg); + } + 8.333% { + -ms-transform: rotate( 30deg); + } + 16.666% { + -ms-transform: rotate( 30deg); + } + 16.667% { + -ms-transform: rotate( 60deg); + } + 24.999% { + -ms-transform: rotate( 60deg); + } + 25% { + -ms-transform: rotate( 90deg); + } + 33.333% { + -ms-transform: rotate( 90deg); + } + 33.334% { + -ms-transform: rotate(120deg); + } + 41.666% { + -ms-transform: rotate(120deg); + } + 41.667% { + -ms-transform: rotate(150deg); + } + 49.999% { + -ms-transform: rotate(150deg); + } + 50% { + -ms-transform: rotate(180deg); + } + 58.333% { + -ms-transform: rotate(180deg); + } + 58.334% { + -ms-transform: rotate(210deg); + } + 66.666% { + -ms-transform: rotate(210deg); + } + 66.667% { + -ms-transform: rotate(240deg); + } + 74.999% { + -ms-transform: rotate(240deg); + } + 75% { + -ms-transform: rotate(270deg); + } + 83.333% { + -ms-transform: rotate(270deg); + } + 83.334% { + -ms-transform: rotate(300deg); + } + 91.666% { + -ms-transform: rotate(300deg); + } + 91.667% { + -ms-transform: rotate(330deg); + } + 99.999% { + -ms-transform: rotate(330deg); + } + 100% { + -ms-transform: rotate(360deg); + } +} + +div#waitingIndicator +{ + position: absolute; + display: none; + visibility: visible; + width: 110px; + height: 110px; + background-image: url('waiting_bezel.png'); +} + +div#waitingSpinner +{ + position: absolute; + visibility: visible; + top: 27px; + left: 33px; + width: 42px; + height: 42px; + background: transparent url('spinner.png') no-repeat 0 0; + opacity: 0.75; + -webkit-animation: spinnerAnimationRotate 1s linear infinite; + -moz-animation: spinnerAnimationRotate 1s linear infinite; + -ms-animation: spinnerAnimationRotate 1s linear infinite; +} diff --git a/12-functions/assets/player/KeynoteDHTMLPlayer.html b/12-functions/assets/player/KeynoteDHTMLPlayer.html new file mode 100644 index 0000000..27c1d93 --- /dev/null +++ b/12-functions/assets/player/KeynoteDHTMLPlayer.html @@ -0,0 +1,57 @@ + + + + Keynote + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/12-functions/assets/player/KeynoteDHTMLPlayer.js b/12-functions/assets/player/KeynoteDHTMLPlayer.js new file mode 100644 index 0000000..fbf4345 --- /dev/null +++ b/12-functions/assets/player/KeynoteDHTMLPlayer.js @@ -0,0 +1 @@ +var kDeviceUnknown="deviceUnknown";var kDeviceDesktop="deviceDesktop";var kDeviceMobile="deviceMobile";var kModeUnknown="modeUnknown";var kModeDesktop="modeDesktop";var kModeMobile="modeMobile";var kBrowserUnknown="browserUnknown";var kBrowserDesktopSafari="browserDesktopSafari";var kBrowserMobileSafari="browserMobileSafari";var kOrientationUnknown="orientationUnknown";var kOrientationLandscape="orientationLandscape";var kOrientationPortrait="orientationPortrait";var kShowModeHyperlinksOnly=2;var kSoundTrackModePlayOnce=0;var kSoundTrackModeLooping=1;var kSoundTrackModeOff=2;var kOpacityPropertyName="opacity";var kVisibilityPropertyName="visibility";var kZIndexPropertyName="z-index";var kDisplayPropertyName="display";var kDisplayBlockPropertyValue="block";var kDisplayNonePropertyValue="none";var kTransformOriginTopLeftPropertyValue="top left";var kTransformOriginCenterPropertyValue="center";var kTransformStylePreserve3DPropertyValue="preserve-3d";var kTransformStyleFlatPropertyValue="flat";var kPositionAbsolutePropertyValue="absolute";var kPositionRelativePropertyValue="relative";var kBackfaceVisibilityHiddenPropertyValue="hidden";var kiPhoneDeviceWidth=320;var kiPhoneDeviceHeight=480;var kiPhoneLandscapeButtonBarHeight=32;var kiPhonePortraitButtonBarHeight=44;var kiPhoneUrlBarHeight=60;var kiPhoneStatusBarHeight=20;var kiPadDeviceWidth=768;var kiPadDeviceHeight=1024;var kiPadLandscapeButtonBarHeight=32;var kiPadPortraitButtonBarHeight=44;var kiPadUrlBarHeight=0;var kiPadStatusBarHeight=0;var kiPadAddressBarHeight=30;var kiPadBookmarksBarHeight=30;var kiPadMaxMoviesPerScene=20;var kMaxSceneDownloadWaitTime=15000;var kMaxScriptDownloadWaitTime=20000;var kWaitingIndicatorFadeOutDuration=2000;var kHideAddressBarDelay=3000;var kSceneLoadPollInterval=100;var kSceneLoadDisplaySpinnerTime=3000;var kSceneLoadDisplaySpinnerPollCount=kSceneLoadDisplaySpinnerTime/kSceneLoadPollInterval;var kSceneLoadGiveUpTime=60000;var kSceneLoadGiveUpPollCount=kSceneLoadGiveUpTime/kSceneLoadPollInterval;var kPropertyName_currentSlide="currentSlide";var kKeyCode_Plus=107;var kKeyCode_Minus=109;var kKeyCode_Dot=110;var kKeyCode_F11=122;var kKeyCode_F12=123;var kKeyCode_Hyphen=189;var kKeyCode_Equal=187;var kKeyCode_Period=190;var kKeyCode_Slash=191;var kKeyCode_Space=32;var kKeyCode_Escape=27;var kKeyCode_LeftArrow=37;var kKeyCode_UpArrow=38;var kKeyCode_RightArrow=39;var kKeyCode_DownArrow=40;var kKeyCode_OpenBracket=219;var kKeyCode_CloseBracket=221;var kKeyCode_Home=36;var kKeyCode_End=35;var kKeyCode_PageUp=33;var kKeyCode_PageDown=34;var kKeyCode_Return=13;var kKeyCode_N=78;var kKeyCode_P=80;var kKeyCode_Q=81;var kKeyCode_S=83;var kKeyCode_Delete=8;var kKeyCode_0=48;var kKeyCode_9=57;var kKeyCode_Numeric_0=96;var kKeyCode_Numeric_9=105;var kKeyModifier_Shift=1000;var kKeyModifier_Ctrl=2000;var kKeyModifier_Alt=3000;var kKeyModifier_Meta=4000;var kHelpPlacardMainTitle=CoreDocs.loc("Keyboard Shortcuts","Keyboard Shortcuts");var kHelpPlacardNavigationTitle=CoreDocs.loc("Navigation","Navigation");var kHelpPlacardOtherTitle=CoreDocs.loc("Other","Other");var kHelpPlacardAdvanceToNextBuild=CoreDocs.loc("Advance to next build","Advance to next build");var kHelpPlacardGoBackToPreviousBuild=CoreDocs.loc("Go back to previous build","Go back to previous build");var kHelpPlacardAdvanceToNextSlide=CoreDocs.loc("Advance to next slide","Advance to next slide");var kHelpPlacardGoBackToPreviousSlide=CoreDocs.loc("Go back to previous slide","Go back to previous slide");var kHelpPlacardGoToFirstSlide=CoreDocs.loc("Go to first slide","Go to first slide");var kHelpPlacardGoToLastSlide=CoreDocs.loc("Go to last slide","Go to last slide");var kHelpPlacardQuitPresentationMode=CoreDocs.loc("Quit presentation mode","Quit presentation mode");var kHelpPlacardGoToSpecificSlide=CoreDocs.loc("Go to specific slide","Go to specific slide");var kHelpPlacardShowOrHideKeyboardShortcuts=CoreDocs.loc("Show or hide Keyboard Shortcuts","Show or hide Keyboard Shortcuts");var kHelpPlacardShowOrHideTheCurrentSlideNumber=CoreDocs.loc("Show or hide the current slide number","Show or hide the current slide number");var kUnableToReachiWorkTryAgain=CoreDocs.loc("Slide couldn't be displayed.\nDo you want to try again?","alert text to display when we timeout trying to download resources from iWork.com");var kSlideLabel=CoreDocs.loc("Slide","Prefix label for 'Slide I/N' display");var kTapOrSwipeToAdvance=CoreDocs.loc("Tap or Swipe to advance","Help string for bottom of portrait mode on mobile device");var kOSUnknown="unknown";var kOSWindows="Windows";var kOSMacOSX="Mac OS X";var kOSiOS="iOS";var gTheoreticalMaxPixelCount=1024*1024*3;var gSafeMaxPixelCount=gTheoreticalMaxPixelCount*0.9;var gShowController=null;var gDevice=kDeviceUnknown;var gBrowser=kBrowserUnknown;var gMode=kModeUnknown;var gIpad=false;var gOS=kOSUnknown;var browserPrefix,browserVersion;var userAgentString=window.navigator.userAgent;var isMacOS=window.navigator.platform.indexOf("Mac")!==-1;var isChrome=false;var isEdge=false;var isIE=false;if(userAgentString.lastIndexOf("Edge/")>0){isEdge=true;browserPrefix="webkit";browserVersion=12}else{if(userAgentString.lastIndexOf("Trident/")>0){isIE=true;browserPrefix="ms";var revisionStringIE=userAgentString.substring(userAgentString.lastIndexOf("rv"),userAgentString.lastIndexOf(")"));var revisionIE=[];if(revisionStringIE.lastIndexOf(":")>0){revisionIE=revisionStringIE.split(":");browserVersion=parseFloat(revisionIE[1])}else{if(revisionStringIE.lastIndexOf(" ")>0){revisionIE=revisionStringIE.split(" ");browserVersion=parseFloat(revisionIE[1])}else{browserVersion=11}}}else{if(Prototype.Browser.WebKit){browserPrefix="webkit";if(userAgentString.lastIndexOf("Chrome/")>0){isChrome=true}}else{if(Prototype.Browser.Gecko){browserPrefix="moz"}else{if(Prototype.Browser.IE){isIE=true;browserPrefix="ms";browserVersion=parseFloat(navigator.appVersion.split("MSIE")[1])}}}}}var kKeyframesPropertyName="@-"+browserPrefix+"-keyframes";var kAnimationNamePropertyName="-"+browserPrefix+"-animation-name";var kAnimationDurationPropertyName="-"+browserPrefix+"-animation-duration";var kAnimationDelayPropertyName="-"+browserPrefix+"-animation-delay";var kAnimationFillModePropertyName="-"+browserPrefix+"-animation-fill-mode";var kAnimationTimingFunctionPropertyName="-"+browserPrefix+"-animation-timing-function";var kAnimationIterationCountPropertyName="-"+browserPrefix+"-animation-iteration-count";var kTransformPropertyName="-"+browserPrefix+"-transform";var kTransformOriginPropertyName="-"+browserPrefix+"-transform-origin";var kTransformOriginZPropertyName="-"+browserPrefix+"-transform-origin-z";var kTransitionPropertyName="-"+browserPrefix+"-transition-property";var kTransitionDurationName="-"+browserPrefix+"-transition-duration";var kTransformStylePropertyName="-"+browserPrefix+"-transform-style";var kTransitionPropertyName="-"+browserPrefix+"-transition";var kTransitionEndEventName=browserPrefix+"TransitionEnd";var kAnimationEndEventName=browserPrefix+"AnimationEnd";var kPerspectivePropertyName="-"+browserPrefix+"-perspective";var kPerspectiveOriginPropertyName="-"+browserPrefix+"-perspective-origin";var kBackfaceVisibilityPropertyName="-"+browserPrefix+"-backface-visibility";var kBoxShadowPropertyName="-"+browserPrefix+"-box-shadow";var kBorderPropertyName="border";var kBackgroundImagePropertyName="background-image";var kEmphasisEffects=["apple:action-pop","apple:action-pulse","apple:action-blink","apple:action-flip","apple:action-bounce","apple:action-jiggle"];var kActionBuildKeyAnimations={"apple:action-opacity":["opacity"],"apple:action-motion-path":["position"],"apple:action-rotation":["transform.rotation.z"],"apple:action-scale":["transform.scale.x","transform.scale.y"]};var kFullscreenChangeEventName=browserPrefix+"fullscreenchange";if(window.attachEvent){window.attachEvent("onload",setupShowController)}else{if(window.addEventListener){window.addEventListener("load",setupShowController,false)}else{document.addEventListener("load",setupShowController,false)}}function static_url(a){return a}function setupShowController(){var a=isMobileSafari();if(a){gBrowser=kBrowserMobileSafari;gDevice=kDeviceMobile;gMode=kModeMobile;gIpad=isiPad()}else{gBrowser=kBrowserDesktopSafari;gDevice=kDeviceDesktop;gMode=kModeDesktop}debugMessage(kDebugSetupShowController,"================================================================================");debugMessage(kDebugSetupShowController,"=== S T A R T O F S E S S I O N ===");debugMessage(kDebugSetupShowController,"================================================================================");debugMessage(kDebugSetupShowController,"userAgent: "+navigator.userAgent);debugMessage(kDebugSetupShowController,"url: "+window.location.href);if(navigator.userAgent.match(/Windows/)){gOS=kOSWindows}var b=getUrlParameter("pixelLimit");if(b!=""){gSafeMaxPixelCount=1024*1024*parseInt(b)}if(navigator.userAgent.indexOf("deviceDesktop")!=-1){debugMessage(kDebugSetupShowController,"Device was '"+gDevice+"', overriding device to be 'deviceDesktop'");gDevice=kDeviceDesktop}if(navigator.userAgent.indexOf("deviceMobile")!=-1){debugMessage(kDebugSetupShowController,"Device was '"+gDevice+"', overriding device to be 'deviceMobile'");gDevice=kDeviceMobile}if(navigator.userAgent.indexOf("modeDesktop")!=-1){debugMessage(kDebugSetupShowController,"Mode was '"+gMode+"', overriding device to be 'modeDesktop'");gMode=kModeDesktop}if(navigator.userAgent.indexOf("modeMobile")!=-1){debugMessage(kDebugSetupShowController,"Mode was '"+gMode+"', overriding device to be 'modeMobile'");gMode=kModeMobile}debugMessage(kDebugSetupShowController," gDevice: "+gDevice);debugMessage(kDebugSetupShowController," gBrowser: "+gBrowser);debugMessage(kDebugSetupShowController," gMode: "+gMode);debugMessage(kDebugSetupShowController," gOS: "+gOS);gShowController=new ShowController();gShowController.displayManager.showWaitingIndicator();gShowController.delegate.setPlaybackReadyHandler(function(){gShowController.startShow()})}function extractDelegateFromUrlParameter(){var d=getUrlParameter("delegate");var a;if((d=="")||(d==null)||(typeof(d)=="undefined")){a=new NullDelegate()}else{var c=d.indexOf(".");a=window;while(c!=-1){var b=d.substring(0,c);a=a[b];d=d.substring(c+1);c=d.indexOf(".")}a=a[d]}return a}var NullDelegate=Class.create({initialize:function(){},showDidLoad:function(){},showExited:function(){history.go(-1)},propertyChanged:function(b,a){},setPlaybackReadyHandler:function(a){a()}}); \ No newline at end of file diff --git a/12-functions/assets/player/NarrationManager.js b/12-functions/assets/player/NarrationManager.js new file mode 100644 index 0000000..0a7b5b5 --- /dev/null +++ b/12-functions/assets/player/NarrationManager.js @@ -0,0 +1 @@ +var NarrationManager=Class.create({initialize:function(b){this.movieSegments=b.movieSegments;this.duration=b.duration;this.eventTracks=b.eventTracks;this.currentNavigationEventIndex=0;this.lastSceneIndex=0;for(var c=0,d=this.eventTracks.length;cthis.thumbnailScroller.domNode.offsetHeight){this.thumbnailScroller.domNode.style.width="126px"}else{this.thumbnailScroller.domNode.style.width="129px"}if(browserPrefix==="ms"){this.domNode.style.width="148px";this.thumbnailSidebar.domNode.style.left="-148px";this.thumbnailSidebar.domNode.style.width="137px";this.thumbnailScroller.domNode.style.width="137px"}},handleClickEvent:function(b){if(gShowController.isRecording){return}b=b||window.event;var c=b.target||b.srcElement;var a;if(browserPrefix==="ms"){b.cancelBubble=true}else{b.stopPropagation()}while((c.slideNumber==null)&&c.nodeName.toLowerCase()!="body"){c=c.parentNode}if(c.slideNumber){this.selectedSlideIndex=c.slideNumber;this.select(this.selectedSlideIndex)}},select:function(a){gShowController.jumpToSlide(a)},handleMouseOverEvent:function(e){e=e||window.event;var c=0;var g=0;if(e.pageX||e.pageY){c=e.pageX;g=e.pageY}else{if(e.clientX||e.clientY){c=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;g=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop}}if(c===0&&g===0){return}var b=this.selectedSlideIndex*76;var f=this.thumbnailScroller.domNode.scrollTop;var a=this.thumbnailScroller.domNode.clientHeight;if(f>b){this.thumbnailScroller.domNode.scrollTop=b}else{if(f+a=4/3){c=88;a=Math.ceil(88*(1/e))}else{c=Math.ceil(66*e);a=66}this.slideThumbnail={width:c,height:a,top:Math.ceil((66-a)/2),left:Math.ceil((88-c)/2),scaleX:c/b,scaleY:a/f}}if(d.nodeName.toLowerCase()==="svg"){d.firstElementChild.setAttribute("transform","matrix("+this.slideThumbnail.scaleX+",0,0,"+this.slideThumbnail.scaleY+",0,0)")}d.setAttribute("style",kTransitionPropertyName+":opacity; "+kTransitionDurationName+":500; width:"+this.slideThumbnail.width+"px; height:"+this.slideThumbnail.height+"px; left:"+this.slideThumbnail.left+"px; top:"+this.slideThumbnail.top+"px; opacity: 0; position: absolute;");d.setAttribute("draggable",false);if(browserPrefix==="moz"){Event.observe(d,"dragstart",function(i){i.preventDefault()})}h.appendChild(d);d.style.opacity=1}});var NavigatorLeftSidebar=Class.create({initialize:function(){this.domNode=document.createElement("div");this.domNode.setAttribute("class","navigatorLeftSidebar")}});var NavigatorThumbnailSidebar=Class.create({initialize:function(){this.domNode=document.createElement("div");this.domNode.setAttribute("class","navigatorThumbnailSidebar")},show:function(a){a.domNode.style.visibility="hidden";this.domNode.style.left="0px";gShowController.displayManager.navigatorIsShowing=true;gShowController.displayManager.clearTimeoutForCursor()},hide:function(a){a.domNode.style.visibility="visible";this.domNode.style.left="-140px";gShowController.displayManager.navigatorIsShowing=false;gShowController.displayManager.setTimeoutForCursor()}});var NavigatorThumbnailScroller=Class.create({initialize:function(){this.domNode=document.createElement("div");this.domNode.setAttribute("class","navigatorThumbnailScroller")}});var NavigatorThumbnailSelection=Class.create({initialize:function(a){this.domNode=document.createElement("div");this.domNode.setAttribute("class","navigatorThumbnailSelection")},select:function(a){this.domNode.style.top=76*a+"px";this.domNode.style.display="block"}});var NavigatorThumbnailContainer=Class.create({initialize:function(){this.domNode=document.createElement("div");this.domNode.setAttribute("class","navigatorThumbnailContainer");this.thumbnailItems=[]},addItem:function(a){this.thumbnailItems.push(a);this.domNode.appendChild(a.domNode)}});var NavigatorThumbnailItem=Class.create({initialize:function(){this.domNode=document.createElement("div");this.domNode.setAttribute("class","navigatorThumbnailItem");this.thumbnailContentNode=document.createElement("div");this.thumbnailContentNode.setAttribute("style","position: absolute; height: 76px; width: 119px;");this.numberNode=document.createElement("div");this.numberNode.setAttribute("style","position: absolute; bottom: 1px; width: 20px; height: 20px; text-align: right; font-weight: bold; color: white;");this.imageNode=document.createElement("div");this.imageNode.setAttribute("style","position: absolute; left: 24px; width: 95px; height: 76px;");this.thumb=document.createElement("div");this.thumb.setAttribute("style","position: absolute; top: 4px; width: 90px; height: 68px;");this.canvasContainer=document.createElement("div");this.canvasContainer.setAttribute("class","navigatorThumbnailItemCanvasContainer");this.thumb.appendChild(this.canvasContainer);this.imageNode.appendChild(this.thumb);this.thumbnailContentNode.appendChild(this.numberNode);this.thumbnailContentNode.appendChild(this.imageNode);this.domNode.appendChild(this.thumbnailContentNode)}}); \ No newline at end of file diff --git a/12-functions/assets/player/OrientationController.js b/12-functions/assets/player/OrientationController.js new file mode 100644 index 0000000..4bf05fb --- /dev/null +++ b/12-functions/assets/player/OrientationController.js @@ -0,0 +1 @@ +var kOrientationChangedEvent="OrientationController:OrientationChangedEvent";var OrientationController=Class.create({initialize:function(){if(gDevice==kDeviceMobile){Event.observe(window,"orientationchange",this.handleDeviceOrientationChangeEvent.bind(this));this.handleDeviceOrientationChangeEvent()}this.orientation=kOrientationUnknown},handleDeviceOrientationChangeEvent:function(b){var c=window.orientation;var a=kOrientationUnknown;if((c===0)||(c===180)){a=kOrientationPortrait}else{a=kOrientationLandscape}this.changeOrientation(a)},changeOrientation:function(a){this.orientation=a;document.fire(kOrientationChangedEvent,{orientation:this.orientation})}}); \ No newline at end of file diff --git a/12-functions/assets/player/ScriptManager.js b/12-functions/assets/player/ScriptManager.js new file mode 100644 index 0000000..0fd950a --- /dev/null +++ b/12-functions/assets/player/ScriptManager.js @@ -0,0 +1 @@ +var kShowSizeDidChangeEvent="ScriptManager:ShowSizeDidChangeEvent";var kScriptDidDownloadEvent="ScriptManager:ScriptDidDownloadEvent";var kScriptDidNotDownloadEvent="ScriptManager:ScriptDidNotDownloadEvent";var kSlideDidDownloadEvent="SlideManager:SlideDidDownloadEvent";var kSlideDidNotDownloadEvent="SlideManager:SlideDidNotDownloadEvent";var ScriptManager=Class.create({initialize:function(a){this.script=null;this.showUrl=a;this.slideManager=null;document.observe(kSlideDidDownloadEvent,this.handleSlideDidDownloadEvent.bind(this));document.observe(kSlideDidNotDownloadEvent,this.handleSlideDidDownloadEvent.bind(this))},handleSlideDidDownloadEvent:function(d){var l=true;for(var m in this.slideManager.slides){if(this.slideManager.slides.hasOwnProperty(m)){if(!this.slideManager.slides[m].downloaded){l=false;break}}}if(l){this.script.events=[];this.script.originalEvents=[];this.script.slideIndexFromSceneIndexLookup={};this.script.sceneIndexFromSlideIndexLookup={};this.script.slides={};this.script.originalSlides={};var n,h,j,g,k=0,b=0,a=0;for(var m in this.slideManager.slides){if(this.slideManager.slides.hasOwnProperty(m)){j=this.slideManager.slides[m].script;g=this.slideManager.slides[m].originalScript;n=j.events;h=g.events;this.script.slides[m]=j;this.script.originalSlides[m]=g;this.script.sceneIndexFromSlideIndexLookup[k]=b;for(var f=0,e=n.length;f0){var i=o.layers[0];o.layers[0]=o.layers[1];o.layers[1]=i;o.layers[1].initialState.hidden=true;var e=k.layers[0];k.layers[0]=k.layers[1];k.layers[1]=e;k.layers[1].initialState.hidden=true;var a=o.layers[1].animations[0].beginTime;var b=o.layers[1].animations[0].duration;var g=o.layers[1].animations[0].animations[0].beginTime;var d=o.layers[1].animations[0].animations[0].duration;var h;if(a==g){for(var f=0,m=o.layers[1].animations[0].animations.length;f0){var l=q.layers[0];q.layers[0]=q.layers[1];q.layers[1]=l;q.layers[1].initialState.hidden=true;var f=k.layers[0];k.layers[0]=k.layers[1];k.layers[1]=f;k.layers[1].initialState.hidden=true;var a=q.layers[1].animations[0].beginTime;var c=q.layers[1].animations[0].duration;var h=q.layers[1].animations[0].animations[0].beginTime;var e=q.layers[1].animations[0].animations[0].duration;var i;if(a==h){for(var g=0,o=q.layers[1].animations[0].animations.length;g1){for(var g=0,o=q.layers[1].animations[0].animations.length;g0){var l=q.layers[0];q.layers[0]=q.layers[1];q.layers[1]=l;q.layers[1].initialState.hidden=true;var f=k.layers[0];k.layers[0]=k.layers[1];k.layers[1]=f;k.layers[1].initialState.hidden=true;var a=q.layers[1].animations[0].beginTime;var c=q.layers[1].animations[0].duration;var h=q.layers[1].animations[0].animations[0].beginTime;var e=q.layers[1].animations[0].animations[0].duration;var i;if(a==h){for(var g=0,o=q.layers[1].animations[0].animations.length;g1){for(var g=0,o=q.layers[1].animations[0].animations.length;g0){var l=JSON.parse(JSON.stringify(q.layers[1]));q.layers.splice(0,0,l);var f=JSON.parse(JSON.stringify(k.layers[1]));k.layers.splice(0,0,f);var a=q.layers[1].animations[0].beginTime;var c=q.layers[1].animations[0].duration;var h=q.layers[1].animations[0].animations[0].beginTime;var e=q.layers[1].animations[0].animations[0].duration;var i;if(a==h){for(var g=0,o=q.layers[1].animations[0].animations.length;gG){G=l}if(z>g){g=z}}C.particleCount={x:G+1,y:g+1}}this.applyScaleFactorForLayer(M.baseLayer,n.baseLayer,k,M.name,I,C)}for(var O=0,t=T.hyperlinks.length;OG){G=l}if(z>g){g=z}}C.particleCount={x:G+1,y:g+1}}this.applyScaleFactorForLayer(R.baseLayer,S.baseLayer,k,R.name,I,C)}}}}for(var p in this.script.slides){if(this.script.slides.hasOwnProperty(p)){var a=this.script.slides[p];var v=this.script.originalSlides[p];for(var E in a.assets){if(a.assets.hasOwnProperty(E)){var r=a.assets[E];var P=v.assets[E];r.width=P.width*k;r.height=P.height*k}}}}},adjustForCropAnimation:function(a,b,i,h){var d=this.script.slideWidth;var f=this.script.slideHeight;var j=Math.floor(d/i);var g=Math.floor(f/h);var e=Math.round(b.x/b.width);var c=Math.round(b.y/b.height);if(b.width!=1||b.height!=1){if(e!=i-1){a.width=j}else{a.width=d-j*(i-1)}if(c!=h-1){a.height=g}else{a.height=f-g*(h-1)}a.position.pointX=j*e+a.width/2;a.position.pointY=g*c+a.height/2;a.contentsRect.x=j*e/d;a.contentsRect.y=g*c/f;a.contentsRect.width=a.width/d;a.contentsRect.height=a.height/f}},downloadScript:function(b){this.delegate=b;if(this.delegate.getKPFJsonStringForShow){this.script=JSON.parse(this.delegate.getKPFJsonStringForShow());if(this.script==null){debugMessageAlways(kDebugScriptMangaer_DownloadScript,"An error occured on the server. KPF header json is null.");return}this.slideManager=new SlideManager({header:this.script});this.slideManager.getSlides(this.script.slideList,this.delegate);return}this.downloadTimeout=setTimeout(this.scriptDidNotDownload.bind(this),kMaxScriptDownloadWaitTime);this.downloadAlreadyFailed=false;var c=this.showUrl+"header.json";if(window.location.protocol==="file:"){c=c+"p";window.local_header=(function(d){this.scriptDidDownload(d,true)}).bind(this);var a=document.createElement("script");a.setAttribute("src",c);document.head.appendChild(a)}else{new Ajax.Request(c,{method:"get",onSuccess:this.scriptDidDownload.bind(this),onFailure:this.scriptDidNotDownload.bind(this)})}},scriptDidDownload:function(b,a){clearTimeout(this.downloadTimeout);if(a){this.script=b}else{this.script=JSON.parse(b.responseText)}this.slideManager=new SlideManager({header:this.script});this.slideManager.downloadSlides(this.script.slideList)},scriptDidNotDownload:function(a){this.downloadAlreadyFailed=true;if(a){clearTimeout(this.downloadTimeout)}document.fire(kScriptDidNotDownloadEvent,{})},sceneIndexFromSlideIndex:function(a){if((this.script==null)||(a<0)||(a>=this.script.slideList.length)){return -1}return this.script.sceneIndexFromSlideIndexLookup[a]},slideIndexFromSceneIndex:function(a){if((this.script==null)||(a<0)||(a>=this.script.events.length)){return -1}return this.script.slideIndexFromSceneIndexLookup[a]}}); \ No newline at end of file diff --git a/12-functions/assets/player/ShowController.js b/12-functions/assets/player/ShowController.js new file mode 100644 index 0000000..aee878b --- /dev/null +++ b/12-functions/assets/player/ShowController.js @@ -0,0 +1 @@ +var kShowControllerState_Stopped="Stopped";var kShowControllerState_Starting="Starting";var kShowControllerState_DownloadingScript="DownloadingScipt";var kShowControllerState_SettingUpScene="SettingUpScene";var kShowControllerState_IdleAtFinalState="IdleAtFinalState";var kShowControllerState_IdleAtInitialState="IdleAtInitialState";var kShowControllerState_WaitingToJump="WaitingToJump";var kShowControllerState_ReadyToJump="ReadyToJump";var kShowControllerState_WaitingToDisplay="WaitingToDisplay";var kShowControllerState_ReadyToDisplay="ReadyToDisplay";var kShowControllerState_WaitingToPlay="WaitingToPlay";var kShowControllerState_ReadyToPlay="ReadyToPlay";var kShowControllerState_Playing="Playing";var kKeyDownEvent="keydown";var kSlideIndexDidChangeEvent="ShowController:SlideIndexDidChangeEvent";var ShowController=Class.create({initialize:function(){this.delegate=extractDelegateFromUrlParameter();this.delegate.showDidLoad();this.showUrl="../";this.displayManager=new DisplayManager();this.scriptManager=new ScriptManager(this.showUrl);this.textureManager=new TextureManager(this.showUrl);this.stageManager=new StageManager(this.textureManager,this.scriptManager);this.touchController=new TouchController();this.animationManager=new AnimationManager();this.orientationController=new OrientationController();this.activeHyperlinks=new Array();this.movieHyperlinks=new Array();this.script=null;this.currentSceneIndex=-1;this.nextSceneIndex=-1;this.currentSlideIndex=-1;this.previousSlideIndex=-1;this.currentSoundTrackIndex=0;this.transformOriginValue="";this.accumulatingDigits=false;this.digitAccumulator=0;this.firstSlide=true;this.lastSlideViewedIndex=-1;this.accountID="";this.guid="";this.locale="EN";this.isNavigationBarVisible=false;this.isFullscreen=false;this.volume=3;this.muted=false;this.soundTrackPlayer=null;this.sceneIndexOfPrebuiltAnimations=-1;this.queuedUserAction=null;document.observe(kScriptDidDownloadEvent,this.handleScriptDidDownloadEvent.bind(this));document.observe(kScriptDidNotDownloadEvent,this.handleScriptDidNotDownloadEvent.bind(this));document.observe(kStageIsReadyEvent,this.handleStageIsReadyEvent.bind(this));document.observe(kStageSizeDidChangeEvent,this.handleStageSizeDidChangeEvent.bind(this));document.observe(kFullscreenChangeEventName,this.handleFullscreenChangeEvent.bind(this));Event.observe(window,"resize",this.handleWindowResizeEvent.bind(this));this.touchController.registerTapEventCallback(this.handleTapEvent.bind(this));this.changeState(kShowControllerState_Stopped);this.movieCache=null;this.movieCacheInfo=null;this.audioCache=null;this.playbackController=new KPFPlaybackController({},this.stageManager.stage);this.navigatorController=new NavigatorController(document.getElementById("slideshowNavigator"));this.slideNumberController=new SlideNumberController(document.getElementById("slideNumberControl"));this.slideNumberDisplay=new SlideNumberDisplay(document.getElementById("slideNumberDisplay"));this.helpPlacard=new HelpPlacardController(document.getElementById("helpPlacard"));this.isRecording=false;this.isRecordingStarted=false;if(isIE&&browserVersion<10){this.animationSupported=false}else{this.animationSupported=true}document.observe("contextmenu",this.handleContextMenuEvent.bind(this));Event.observe(this.displayManager.previousButton,"click",this.goBackToPreviousSlide.bind(this,"tapPreviousButton"));Event.observe(this.displayManager.nextButton,"click",this.advanceToNextBuild.bind(this,"tapNextButton"))},startShow:function(){this.changeState(kShowControllerState_DownloadingScript);this.scriptManager.downloadScript(this.delegate)},exitShow:function(a){clearTimeout(this.exitTimeout);if(a){this.delegate.showExited()}else{this.exitTimeout=setTimeout((function(){this.delegate.showExited()}).bind(this),750)}},promptUserToTryAgain:function(b){var a=false;a=confirm(b);return a},handleScriptDidDownloadEvent:function(e){switch(this.state){case kShowControllerState_DownloadingScript:this.script=e.memo.script;document.observe(kKeyDownEvent,this.handleKeyDownEvent.bind(this));document.observe(kSwipeEvent,this.handleSwipeEvent.bind(this));Event.observe(this.displayManager.body,"click",this.handleClickEvent.bind(this));if(this.script.showMode==kShowModeHyperlinksOnly){this.displayManager.setHyperlinksOnlyMode()}this.changeState(kShowControllerState_Starting);var h;var c=parseInt(getUrlParameter("restartingSceneIndex"));var f=document.URL.split("?");var a=f[0].split("#");if(a[1]){c=parseInt(a[1])}if(c){h=c}else{var d=getUrlParameter("currentSlide");var g;if(d){g=parseInt(d)}else{g=1}h=this.scriptManager.sceneIndexFromSlideIndex(g-1)}if(this.script.recording){if(this.script.recording.eventTracks[0].type==="navigation"){this.narrationManager=new NarrationManager(this.script.recording);h=this.narrationManager.sceneIndexFromNavigationEvent(this.narrationManager.navigationEvents[0]);this.isRecording=true;this.jumpToScene(h,false);break}}if(h>this.script.lastSceneIndex){break}var e=this.script.events[h];var b=e.automaticPlay==1||e.automaticPlay==true;this.jumpToScene(h,b);break;default:debugMessage(kDebugShowController_HandleScriptDidDownloadEvent,"- hmmm we seem to have arrived here from an unpredicted state");break}},handleScriptDidNotDownloadEvent:function(b){debugMessage(kDebugShowController_HandleScriptDidNotDownloadEvent);var a=this.promptUserToTryAgain(kUnableToReachiWorkTryAgain);if(a){this.scriptManager.downloadScript()}else{this.displayManager.clearLaunchMode();this.displayManager.hideWaitingIndicator()}},handleStageIsReadyEvent:function(a){if(this.isFullscreen){setTimeout((function(){this.displayManager.stageArea.style.opacity=1}).bind(this),50)}else{setTimeout((function(){this.displayManager.stageArea.style.opacity=1}).bind(this),500)}this.positionSlideNumberControl();this.positionSlideNumberDisplay();this.positionHelpPlacard()},positionSlideNumberControl:function(){var b=(this.displayManager.usableDisplayWidth-this.slideNumberController.width)/2;var a=this.displayManager.stageAreaTop+this.displayManager.stageAreaHeight-(this.slideNumberController.height+16);this.slideNumberController.setPosition(b,a)},positionSlideNumberDisplay:function(){var b=(this.displayManager.usableDisplayWidth-this.slideNumberDisplay.width)/2;var a=this.displayManager.stageAreaTop+this.displayManager.stageAreaHeight-(this.slideNumberDisplay.height+16);this.slideNumberDisplay.setPosition(b,a)},positionHelpPlacard:function(){var b=(this.displayManager.usableDisplayWidth-this.helpPlacard.width)/2;var a=(this.displayManager.usableDisplayHeight-this.helpPlacard.height)/2;this.helpPlacard.setPosition(b,a)},handleFullscreenChangeEvent:function(){if(document.webkitIsFullScreen||document.mozFullScreen){this.isFullscreen=true}else{this.isFullscreen=false}setTimeout((function(){this.displayManager.layoutDisplay()}).bind(this),0)},handleWindowResizeEvent:function(){clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(this.changeWindowSize.bind(this),1000)},changeWindowSize:function(){if(this.delegate.setViewScale){this.scriptManager.reapplyScaleFactor();this.textureManager.slideCache=null;this.textureManager.slideCache={};var a=this.currentSceneIndex;if(this.state===kShowControllerState_IdleAtFinalState){if(this.currentSceneIndex=kKeyCode_Numeric_0)&&(c<=kKeyCode_Numeric_9)){c=kKeyCode_0+(c-kKeyCode_Numeric_0)}c+=(a.shiftKey?kKeyModifier_Shift:0);c+=(a.altKey?kKeyModifier_Alt:0);c+=(a.ctrlKey?kKeyModifier_Ctrl:0);c+=(a.metaKey?kKeyModifier_Meta:0);if(this.isRecording){return}var b=false;switch(c){case kKeyCode_Escape:this.exitShow(true);break;case kKeyCode_Slash:case kKeyCode_Slash+kKeyModifier_Shift:if(this.helpPlacard.isShowing){this.helpPlacard.hide()}else{this.helpPlacard.show()}break;case kKeyCode_Q:this.exitShow(true);break;case kKeyCode_S:if(this.slideNumberController.isShowing){if(this.slideNumberTimeout){clearTimeout(this.slideNumberTimeout)}this.slideNumberTimeout=setTimeout(this.hideAndResetSlideNumberController.bind(this),0)}if(this.slideNumberDisplay.isShowing){this.slideNumberDisplay.hide()}else{this.slideNumberDisplay.setSlideNumber(this.currentSlideIndex+1);this.slideNumberDisplay.show()}break;case kKeyCode_Return:if(this.accumulatingDigits){this.accumulatingDigits=false;if(this.script.showMode!=kShowModeHyperlinksOnly){if(this.digitAccumulator>this.script.slideCount){this.digitAccumulator=this.script.slideCount}else{if(this.digitAccumulator<1){this.digitAccumulator=1}}this.slideNumberController.setSlideNumber(this.digitAccumulator);this.jumpToSlide(this.digitAccumulator)}else{debugMessage(kDebugShowController_OnKeyPress,"- can't do it, we're in hyperlinks only mode")}break}case kKeyCode_N:case kKeyCode_Space:case kKeyCode_DownArrow:case kKeyCode_RightArrow:case kKeyCode_PageDown:case kKeyCode_RightArrow+kKeyModifier_Shift:this.advanceToNextBuild("onKeyPress");break;case kKeyCode_DownArrow+kKeyModifier_Shift:case kKeyCode_PageDown+kKeyModifier_Shift:case kKeyCode_CloseBracket:case kKeyCode_Equal+kKeyModifier_Shift:case kKeyCode_Equal:case kKeyCode_Plus:this.advanceToNextSlide("onKeyPress");break;case kKeyCode_LeftArrow+kKeyModifier_Shift:case kKeyCode_PageUp+kKeyModifier_Shift:case kKeyCode_OpenBracket:this.goBackToPreviousBuild("onKeyPress");break;case kKeyCode_P:case kKeyCode_PageUp:case kKeyCode_LeftArrow:case kKeyCode_UpArrow:case kKeyCode_UpArrow+kKeyModifier_Shift:case kKeyCode_Hyphen:case kKeyCode_Minus:this.goBackToPreviousSlide("onKeyPress");break;case kKeyCode_Delete:b=true;if(this.accumulatingDigits){if(this.digitAccumulator<10){if(this.slideNumberTimeout){clearTimeout(this.slideNumberTimeout)}this.slideNumberTimeout=setTimeout(this.hideAndResetSlideNumberController.bind(this),0)}else{if(this.slideNumberTimeout){clearTimeout(this.slideNumberTimeout)}this.slideNumberTimeout=setTimeout(this.hideAndResetSlideNumberController.bind(this),7000);var d=this.digitAccumulator.toString();this.digitAccumulator=parseInt(d.substring(0,d.length-1));this.slideNumberController.setSlideNumber(this.digitAccumulator)}}break;case kKeyCode_Home:if(this.script.showMode!=kShowModeHyperlinksOnly){this.jumpToSlide(1)}else{debugMessage(kDebugShowController_OnKeyPress,"- can't do it, we're in hyperlinks only mode")}break;case kKeyCode_End:if(this.script.showMode!=kShowModeHyperlinksOnly){this.jumpToSlide(this.script.slideCount)}else{debugMessage(kDebugShowController_OnKeyPress,"- can't do it, we're in hyperlinks only mode")}break;default:if(this.slideNumberTimeout){clearTimeout(this.slideNumberTimeout)}this.slideNumberTimeout=setTimeout(this.hideAndResetSlideNumberController.bind(this),7000);if((c>=kKeyCode_0)&&(c<=kKeyCode_9)){if(this.slideNumberDisplay.isShowing){this.slideNumberDisplay.hide()}b=true;if(this.accumulatingDigits===false){this.accumulatingDigits=true;this.digitAccumulator=0}if(this.digitAccumulator.toString().length<4){this.digitAccumulator*=10;this.digitAccumulator+=(c-kKeyCode_0);this.slideNumberController.setSlideNumber(this.digitAccumulator);if(!this.slideNumberController.isShowing){this.slideNumberController.show()}}}else{b=true}break}if(this.accumulatingDigits&&(b===false)){}},hideAndResetSlideNumberController:function(){if(this.slideNumberTimeout){clearTimeout(this.slideNumberTimeout)}this.accumulatingDigits=false;this.digitAccumulator=0;this.slideNumberController.hide()},hideSlideNumberDisplay:function(){this.slideNumberDisplay.hide()},toggleFullscreen:function(){if(isIE){return}setTimeout((function(){this.displayManager.stageArea.style.opacity=0}).bind(this),0);this.displayManager.hideHUD(true);if(document.webkitIsFullScreen||document.mozFullScreen){this.isFullscreen=false;(document.webkitCancelFullScreen&&document.webkitCancelFullScreen())||(document.mozCancelFullScreen&&document.mozCancelFullScreen())}else{this.isFullscreen=true;(document.body.webkitRequestFullScreen&&document.body.webkitRequestFullScreen())||(document.body.mozRequestFullScreen&&document.body.mozRequestFullScreen())}},changeState:function(a){if(a!=this.state){this.leavingState();this.state=a;this.enteringState()}},leavingState:function(){switch(this.state){case kShowControllerState_Stopped:break;case kShowControllerState_Starting:break;case kShowControllerState_SettingUpScene:break;case kShowControllerState_IdleAtFinalState:break;case kShowControllerState_IdleAtInitialState:break;case kShowControllerState_WaitingToJump:break;case kShowControllerState_ReadyToJump:break;case kShowControllerState_WaitingToPlay:this.displayManager.hideWaitingIndicator();break;case kShowControllerState_ReadyToPlay:break;case kShowControllerState_Playing:break}},enteringState:function(){switch(this.state){case kShowControllerState_Stopped:break;case kShowControllerState_Starting:this.displayManager.showWaitingIndicator();break;case kShowControllerState_SettingUpScene:break;case kShowControllerState_IdleAtFinalState:case kShowControllerState_IdleAtInitialState:this.updateSlideNumber();this.displayManager.hideWaitingIndicator();this.createHyperlinksForCurrentState("idle");runInNextEventLoop(this.doIdleProcessing.bind(this));break;case kShowControllerState_WaitingToJump:break;case kShowControllerState_ReadyToJump:break;case kShowControllerState_WaitingToPlay:this.displayManager.showWaitingIndicator();break;case kShowControllerState_ReadyToPlay:break;case kShowControllerState_Playing:break}},doIdleProcessing:function(){this.preloadAppropriateScenes();if(this.queuedUserAction!=null){this.queuedUserAction();this.queuedUserAction=null}else{var a=this.stageManager.stage;if(a.childNodes.length!=0){this.updateNavigationButtons()}else{}}},truncatedSlideIndex:function(a){return this.truncatedIndex(a,this.script.lastSlideIndex,this.script.loopSlideshow)},truncatedSceneIndex:function(a){return this.truncatedIndex(a,this.script.lastSceneIndex,this.script.loopSlideshow)},truncatedIndex:function(a,c,b){if(a<0){if(b){a=a+c+1}else{a=-1}}else{if(a>c){if(b){a=a-c-1}else{a=-1}}}return a},preloadAppropriateScenes:function(){var d=this.currentSceneIndex;if(this.state===kShowControllerState_IdleAtFinalState){d++}var a=this.script.slideIndexFromSceneIndexLookup[d];var e=this.scriptManager.sceneIndexFromSlideIndex(this.truncatedSlideIndex(a-1));var b=this.scriptManager.sceneIndexFromSlideIndex(this.truncatedSlideIndex(a-2));var p=this.scriptManager.sceneIndexFromSlideIndex(this.truncatedSlideIndex(a-3));var g=this.truncatedSceneIndex(d-1);var f=this.truncatedSceneIndex(d-2);var c=this.truncatedSceneIndex(d-3);var n=this.truncatedSceneIndex(d+1);var m=this.truncatedSceneIndex(d+2);var k=this.truncatedSceneIndex(d+3);var l=this.scriptManager.sceneIndexFromSlideIndex(this.truncatedSlideIndex(a+1));var j=this.scriptManager.sceneIndexFromSlideIndex(this.truncatedSlideIndex(a+2));var i=this.scriptManager.sceneIndexFromSlideIndex(this.truncatedSlideIndex(a+3));var o={};var h=(gIpad===true);if(!h&&p!=-1){o[p]=true}if(!h&&b!=-1){o[b]=true}if(!h&&e!=-1){o[e]=true}if(!h&&c!=-1){o[c]=true}if(!h&&f!=-1){o[f]=true}if(!h&&g!=-1){o[g]=true}o[this.currentSceneIndex]=true;o[d]=true;if(n!=-1){o[n]=true}if(!h&&m!=-1){o[m]=true}if(!h&&k!=-1){o[k]=true}if(!h&&l!=-1){o[l]=true}if(!h&&j!=-1){o[j]=true}if(!h&&i!=-1){o[i]=true}this.textureManager.preloadScenes(o)},advanceToNextBuild:function(b){if(this.script.showMode===kShowModeHyperlinksOnly&&b!="currentSceneDidComplete"){return false}if(this.displayManager.infoPanelIsShowing){return false}var a=false;switch(this.state){case kShowControllerState_IdleAtFinalState:if(this.nextSceneIndex===-1){if(this.delegate.getKPFJsonStringForShow){this.stopSoundTrack();this.exitShow()}else{this.stopSoundTrack();break}}a=true;this.jumpToScene(this.nextSceneIndex,true);break;case kShowControllerState_IdleAtInitialState:if(this.currentSceneIndex>=this.script.numScenes){if(this.script.loopSlideshow){a=true;this.jumpToScene(0,false)}else{if(this.delegate.getKPFJsonStringForShow){this.stopSoundTrack();this.exitShow()}else{this.stopSoundTrack();break}}}else{a=true;this.playCurrentScene()}break;default:debugMessage(kDebugShowController_AdvanceToNextBuild,"nextSceneIndex: "+this.nextSceneIndex+" can't advance now, not in an idle state (currently in '"+this.state+"' state), queue up action to run in next idle time");if(this.queuedUserAction==null){a=true;this.queuedUserAction=this.advanceToNextBuild.bind(this,b)}break}return a},advanceToNextSlide:function(d){if(this.script.showMode==kShowModeHyperlinksOnly){return}if(this.displayManager.infoPanelIsShowing){return}var b=this.currentSceneIndex;switch(this.state){case kShowControllerState_IdleAtFinalState:b=b+1;case kShowControllerState_IdleAtInitialState:var f=this.scriptManager.slideIndexFromSceneIndex(b);var c;if(f===this.script.slideCount-1){if(this.script.loopSlideshow){c=0}else{return}}else{c=this.currentSlideIndex+1}var g=this.scriptManager.sceneIndexFromSlideIndex(c);var e=this.script.events[g];var a=e.automaticPlay==1||e.automaticPlay==true;this.jumpToSlide(c+1,a);break;default:debugMessage(kDebugShowController_AdvanceToNextSlide,"can't advance now, not in an idle state (currently in '"+this.state+"' state), queue up action to run in next idle time");if(this.queuedUserAction==null){this.queuedUserAction=this.advanceToNextSlide.bind(this,d)}break}},goBackToPreviousBuild:function(c){this.resetMediaCache();if(this.script.showMode==kShowModeHyperlinksOnly){return}if(this.displayManager.infoPanelIsShowing){return}var a=this.currentSceneIndex;switch(this.state){case kShowControllerState_IdleAtFinalState:a=a+1;case kShowControllerState_Playing:case kShowControllerState_IdleAtInitialState:var b;if(a===0){if(this.script.loopSlideshow){b=this.script.events.length-1}else{return}}else{b=a-1}this.jumpToScene(b,false);break;default:debugMessage(kDebugShowController_GoBackToPreviousBuild,"can't go back now, not in an idle state (currently in '"+this.state+"' state)");if(this.queuedUserAction==null){this.queuedUserAction=this.goBackToPreviousBuild.bind(this,c)}break}},goBackToPreviousSlide:function(c){if(this.script.showMode==kShowModeHyperlinksOnly){return}if(this.displayManager.infoPanelIsShowing){return}var b=this.currentSceneIndex;switch(this.state){case kShowControllerState_IdleAtFinalState:b=b+1;case kShowControllerState_Playing:case kShowControllerState_IdleAtInitialState:var d=this.scriptManager.slideIndexFromSceneIndex(b);var a;if(d===0){if(this.script.loopSlideshow){a=this.script.slideCount-1}else{a=0}}else{if(d===-1&&b>0){a=this.script.slideCount-1}else{a=this.currentSlideIndex-1}}this.jumpToSlide(a+1);break;default:debugMessage(kDebugShowController_GoBackToPreviousSlide,"can't go back now, not in an idle state (currently in '"+this.state+"' state)");if(this.queuedUserAction==null){this.queuedUserAction=this.goBackToPreviousSlide.bind(this,c)}break}},calculatePreviousSceneIndex:function(a){if(a==-1){previousSceneIndex=-1}else{previousSceneIndex=a-1}return previousSceneIndex},jumpToSlide:function(b,a){var c=b-1;var d=this.scriptManager.sceneIndexFromSlideIndex(c);this.resetMediaCache();if(a==null){a=false}this.jumpToScene(d,a)},jumpToScene:function(d,c){this.lastSlideViewedIndex=this.scriptManager.slideIndexFromSceneIndex(this.currentSceneIndex);if(d===-1){return}switch(this.state){case kShowControllerState_Starting:var b="position:absolute;background-color:transparent; left:0px; top:0px; width:"+this.displayManager.usableDisplayWidth+"px; height:"+this.displayManager.usableDisplayHeight+"px;";this.starting=true;this.maskElement=document.createElement("div");this.maskElement.setAttribute("style",b);document.body.appendChild(this.maskElement);case kShowControllerState_IdleAtInitialState:case kShowControllerState_IdleAtFinalState:case kShowControllerState_ReadyToJump:break;default:debugMessage(kDebugShowController_JumpToScene,"can't jump now, currently in '"+this.state+"' state which does not supports jumping...");return}if(this.textureManager.isScenePreloaded(d)===false){this.changeState(kShowControllerState_WaitingToJump);var a={sceneIndex:d,automaticPlay:c};this.waitForSceneToLoadTimeout=setTimeout(this.handleSceneDidNotLoad.bind(this,a),kMaxSceneDownloadWaitTime);this.textureManager.loadScene(d,this.handleSceneDidLoad.bind(this,a));return}this.changeState(kShowControllerState_SettingUpScene);runInNextEventLoop(this.jumpToScene_partThree.bind(this,d,c))},handleSceneDidLoad:function(a){clearTimeout(this.waitForSceneToLoadTimeout);this.displayManager.setNextButtonEnabled(this.currentSceneIndex<(this.script.pageCount-1));switch(this.state){case kShowControllerState_WaitingToJump:this.changeState(kShowControllerState_ReadyToJump);this.jumpToScene_partTwo(a.sceneIndex,a.automaticPlay);break;default:break}},handleSceneDidNotLoad:function(a){clearTimeout(this.waitForSceneToLoadTimeout);this.queuedUserAction=null;var b=this.promptUserToTryAgain(kUnableToReachiWorkTryAgain);if(b){var d=window.location.href;var f;var e=d.indexOf("&restartingSceneIndex");if(e===-1){f=d}else{f=d.substring(0,e)}var c=f+"&restartingSceneIndex="+a.sceneIndex;window.location.replace(c)}else{this.changeState(kShowControllerState_IdleAtFinalState)}},jumpToScene_partTwo:function(b,a){this.changeState(kShowControllerState_SettingUpScene);runInNextEventLoop(this.jumpToScene_partThree.bind(this,b,a))},jumpToScene_partThree:function(c,a){var b=false;if(b){runInNextEventLoop(this.jumpToScene_partFour.bind(this,c,a))}else{this.jumpToScene_partFour(c,a)}},jumpToScene_partFour:function(b,a){this.displayScene(b);if(this.starting){if(this.maskElement!=null){document.body.removeChild(this.maskElement);this.maskElement=null;this.starting=false}window.focus()}if(this.helpPlacard.isShowing){this.helpPlacard.hide()}if(this.slideNumberDisplay.isShowing){this.slideNumberDisplay.hide()}if(this.slideNumberController.isShowing){if(this.slideNumberTimeout){clearTimeout(this.slideNumberTimeout)}this.slideNumberTimeout=setTimeout(this.hideAndResetSlideNumberController.bind(this),500)}if(a){this.playCurrentScene()}else{this.changeState(kShowControllerState_IdleAtInitialState);if(this.isRecording&&!this.isRecordingStarted){this.narrationManager.start();this.isRecordingStarted=true}}},displayScene:function(g,b){if(g===-1){return}this.animationManager.deleteAllAnimations();var c=this.scriptManager.slideIndexFromSceneIndex(this.currentSceneIndex);var e=b?b.slideIndex:this.scriptManager.slideIndexFromSceneIndex(g);if(c!==e){this.resetMediaCache()}this.setCurrentSceneIndexTo(g);if(b){this.playbackController.renderEvent(b)}else{var f=this.script.slideIndexFromSceneIndexLookup[g];var d=this.script.slideList[f];var a=new KPFEvent({slideId:d,slideIndex:f,sceneIndex:g,event:this.script.events[g],animationSupported:this.animationSupported});this.playbackController.renderEvent(a)}this.updateNavigationButtons()},setCurrentSceneIndexTo:function(a){this.currentSceneIndex=a;this.assignNextSceneIndex();this.updateSlideNumber();this.updateNavigationButtons()},assignNextSceneIndex:function(){this.nextSceneIndex=this.calculateNextSceneIndex(this.currentSceneIndex)},calculateNextSceneIndex:function(b){var a=this.calculateNextSceneIndex_internal(b);return a},calculateNextSceneIndex_internal:function(b){var a=-1;if(b0){a=true}if(c===0&&this.script.lastSceneIndex===0){b=true}else{if(this.currentSceneIndex0;d--){var e=this.activeHyperlinks[d-1];var c=e.targetRectangle;hyperlinkLeft=Math.floor(c.x);hyperlinkTop=Math.floor(c.y);hyperlinkRight=hyperlinkLeft+Math.floor(c.width);hyperlinkBottom=hyperlinkTop+Math.floor(c.height);if((b.pointX>=hyperlinkLeft)&&(b.pointX<=hyperlinkRight)&&(b.pointY>=hyperlinkTop)&&(b.pointY<=hyperlinkBottom)){return e}}return null},createHyperlinksForCurrentState:function(a){var b=-1;switch(this.state){case kShowControllerState_IdleAtInitialState:b=this.currentSceneIndex;break;case kShowControllerState_IdleAtFinalState:if(this.currentSceneIndex0){for(var a=0;a0){this.hyperlinkPlane.removeChild(this.hyperlinkPlane.firstChild)}this.audioTrackOffset=this.audioTrackSpacer},handleStageSizeDidChangeEvent:function(a){this.stageWidth=a.memo.width;this.stageHeight=a.memo.height;this.adjustStageToFit(this.stage);this.adjustStageToFit(this.hyperlinkPlane)},handleShowSizeDidChangeEvent:function(a){this.showWidth=a.memo.width;this.showHeight=a.memo.height;this.adjustStageToFit(this.stage);this.adjustStageToFit(this.hyperlinkPlane);this.audioTrackIconSize=this.showHeight/4;this.audioTrackSpacer=this.audioTrackIconSize/4;this.audioTrackOffset=this.audioTrackSpacer},adjustStageToFit:function(b){if((this.showWidth!=0)&&(this.stageWidth!=0)){var d=this.stageHeight/this.showHeight;var f=this.stageWidth/this.showWidth;var a="scaleX("+f+") scaleY("+d+")";var e=20;var c=Math.tan(Math.PI/180*e/2)*15*(this.showWidth>this.showHeight?this.showHeight:this.showWidth);this.perspective=c;setElementProperty(b,kTransformOriginPropertyName,kTransformOriginCenterPropertyValue);setElementProperty(b,kTransformPropertyName,a);setElementProperty(b,kPerspectiveOriginPropertyName,kTransformOriginCenterPropertyValue);setElementProperty(b,kTransformStylePropertyName,kTransformStylePreserve3DPropertyValue);setElementPosition(b,(d-1)*this.showHeight/2,(f-1)*this.showWidth/2,this.showWidth,this.showHeight);document.fire(kStageIsReadyEvent,{})}},debugGetStageStatistics:function(){var a={numTextures:0,numPixels:0,numDegraded:0};this.debugRecursivelyWalkDomFrom(this.stage,a);return a}}); \ No newline at end of file diff --git a/12-functions/assets/player/TextureManager.js b/12-functions/assets/player/TextureManager.js new file mode 100644 index 0000000..8640ea2 --- /dev/null +++ b/12-functions/assets/player/TextureManager.js @@ -0,0 +1 @@ +var KNStaticAssets={};KNStaticAssets["KNTransitionSwoosh_Shadow.png"]=new Image();KNStaticAssets["KNTransitionSwoosh_Shadow.png"].src=static_url("KNTransitionSwoosh_Shadow.png");KNStaticAssets["KNTransitionSlide_Black.png"]=new Image();KNStaticAssets["KNTransitionSlide_Black.png"].src=static_url("KNTransitionSlide_Black.png");var TextureManager=Class.create({initialize:function(a){this.script=null;this.showUrl=a;this.sceneCache={};this.slideCache={};this.sceneDidLoadCallbackHandler=null;this.viewScale=1;document.observe(kScriptDidDownloadEvent,(function(b){this.handleScriptDidDownloadEvent(b)}).bind(this),false)},setSceneDidLoadCallbackHandler:function(a,b){this.sceneDidLoadCallbackHandler={handler:a,sceneIndex:b}},processTextureDidLoadCallback:function(d,b){if(this.sceneDidLoadCallbackHandler==null){return}var c=this.sceneDidLoadCallbackHandler.sceneIndex;var a=this.script.slideIndexFromSceneIndexLookup[c];if(a!=b){return}if(this.isSlidePreloaded(b)){this.callSceneDidLoadCallback()}},processSlideDidLoadCallback:function(b){if(this.sceneDidLoadCallbackHandler==null){return}var c=this.sceneDidLoadCallbackHandler.sceneIndex;var a=this.script.slideIndexFromSceneIndexLookup[c];if(a!=b){return}this.callSceneDidLoadCallback()},processSceneDidLoadCallback:function(a){if(this.sceneDidLoadCallbackHandler&&a===this.sceneDidLoadCallbackHandler.sceneIndex&&this.isScenePreloaded(a)){this.callSceneDidLoadCallback()}},callSceneDidLoadCallback:function(){this.sceneDidLoadCallbackHandler.handler();this.sceneDidLoadCallbackHandler=null},loadScene:function(c,a){if(c<0||c>this.script.numScenes){return}if(a){this.setSceneDidLoadCallbackHandler(a,c)}var b=this.script.slideIndexFromSceneIndexLookup[c];if(this.delegate.loadTextureBySlideIndex){this.assetForSlide(b)}else{this.requestTexturesForSlide(b)}},preloadScenes:function(a){for(var c in a){var b=this.script.slideIndexFromSceneIndexLookup[c];if(b==null){continue}if(this.slideCache.hasOwnProperty(b)===false){this.loadScene(c)}}},isSlidePreloaded:function(b){var a=false;if(this.slideCache[b]){a=true;for(var c in this.slideCache[b].textureRequests){if(this.slideCache[b].textureRequests[c]===false){a=false;break}}}return a},isScenePreloaded:function(c){var b=this.script.slideIndexFromSceneIndexLookup[c];var a=this.isSlidePreloaded(b);return a},handleScriptDidDownloadEvent:function(a){this.script=a.memo.script;this.delegate=a.memo.delegate},assetForSlide:function(f){var d=this.slideCache[f];var c=this.script.slideList[f];var b=this.script.slides[c];var a=b.assets;if(d==null){this.slideCache[f]={};this.slideCache[f].textureAssets={};this.slideCache[f].textureRequests={};for(var g in a){var e=a[g];if(e.type==="texture"){this.slideCache[f].textureRequests[g]=false;this.requestAsset(g,e,c,f)}}}else{if(this.isSlidePreloaded(f)){this.processSlideDidLoadCallback(f)}else{for(var g in a){var e=a[g];if(this.slideCache[f].textureRequests[g]===false&&e.type==="texture"){this.requestAsset(g,e,c,f)}}}}},requestAsset:function(d,b,a,c){requestedSlideIndex=c;if(b.assetRequest.type==="slide"){if(b.assetRequest.state==="incoming"||b.assetRequest.state==="incoming-reflection"){if(b.assetRequest.slide){requestedSlideIndex=this.script.slideList.indexOf(b.assetRequest.slide);if(requestedSlideIndex===-1){if(this.script.loopSlideshow){requestedSlideIndex=0}else{requestedSlideIndex=c;b.assetRequest.state="KNTransitionSlide_Black.png"}}}else{if(cthis.trackAreaRight){debugMessage(kDebugTouchController_IsTouchWithinTrackArea,"- nope, x > right");return false}if(a.clientYthis.trackAreaBottom){debugMessage(kDebugTouchController_IsTouchWithinTrackArea,"- nope, y > bottom");return false}debugMessage(kDebugTouchController_IsTouchWithinTrackArea,"- yes it is!");return true},handleTouchStartEvent:function(b){debugMessage(kDebugTouchController_HandleTouchStartEvent,"touch event has "+b.touches.length+" fingers...");if(this.swipeInProgress===false){debugMessage(kDebugTouchController_HandleTouchStartEvent,"- this is the first finger down event...");var a=b.touches[0];if(this.isTouchWithinTrackArea(a)){debugMessage(kDebugTouchController_HandleTouchStartEvent,"- start tracking a swipt event...");if(this.preventDefault){b.preventDefault()}this.swipeInProgress=true;this.swipeFingerCount=b.touches.length;this.swipeStartTime=new Date();this.swipeStartX=a.clientX;this.swipeStartY=a.clientY}else{debugMessage(kDebugTouchController_HandleTouchStartEvent,"- but it is outside of the track area")}}else{debugMessage(kDebugTouchController_HandleTouchStartEvent,"- this is a subsequent finger down event. update finger count...");if(b.touches.length>this.swipeFingerCount){this.swipeFingerCount=b.touches.length;debugMessage(kDebugTouchController_HandleTouchStartEvent,"- this.swipeFingerCount:"+this.swipeFingerCount)}}},handleTouchMoveEvent:function(a){if(this.preventDefault){a.preventDefault()}debugMessage(kDebugTouchController_HandleTouchCancelEvent,"")},handleTouchEndEvent:function(a){debugMessage(kDebugTouchController_HandleTouchEndEvent,"touch event has "+a.touches.length+" fingers...");if(this.swipeInProgress){if(this.preventDefault){a.preventDefault()}if(a.touches.length===0){debugMessage(kDebugTouchController_HandleTouchEndEvent,"- "+this.swipeFingerCount+" finger swipe is complete.");var h=a.changedTouches[0];var m=document.viewport.getDimensions();var e=m.width/3;var d=m.height/3;var g=m.width/3;var k=h.clientX-this.swipeStartX;var i=h.clientY-this.swipeStartY;var c=Math.abs(k);var b=Math.abs(i);var o=new Date();var q=o-this.swipeStartTime;var l=false;var p=false;var f=400;var j=20;if(q800){debugMessage(kDebugTouchController_HandleTouchEndEvent,"- elapsed time too long to be a swipe, ignoring...")}else{if(c>b){if(b>d){debugMessage(kDebugTouchController_HandleTouchEndEvent,"- vertical magnitude too high, ignoring...")}else{p=true}}else{if(c>g){debugMessage(kDebugTouchController_HandleTouchEndEvent,"- horizontal magnitude too high, ignoring...")}else{p=true}}}if(l){debugMessage(kDebugTouchController_HandleTouchEndEvent,"- it's a "+this.swipeFingerCount+" finger tap");if(this.tapEventCallback){var a={};a.memo={};a.memo.fingers=this.swipeFingerCount;a.memo.pointX=h.clientX;a.memo.pointY=h.clientY;debugMessage(kDebugTouchController_HandleTouchEndEvent,"- invoking callback with pointX: "+h.clientX+" pointY: "+h.clientY+"...");this.tapEventCallback(a);debugMessage(kDebugTouchController_HandleTouchEndEvent,"- back from callback")}else{debugMessage(kDebugTouchController_HandleTouchEndEvent,"- firing TapEvent...");document.fire(kTapEvent,{fingers:this.swipeFingerCount,pointX:h.clientX,pointY:h.clientY})}}else{if(p){var n;if(c>b){n=(k<0?"left":"right")}else{n=(i<0?"up":"down")}debugMessage(kDebugTouchController_HandleTouchEndEvent,"- it's a "+this.swipeFingerCount+" finger swipe in the "+n+" direction");document.fire(kSwipeEvent,{direction:n,fingers:this.swipeFingerCount})}}this.swipeInProgress=false;this.swipeFingerCount=0}}else{debugMessage(kDebugTouchController_HandleTouchEndEvent,"- false alarm. swipe has already ended.")}},handleTouchCancelEvent:function(a){debugMessage(kDebugTouchController_HandleTouchCancelEvent,"");this.swipeInProgress=false},handleGestureStartEvent:function(a){debugMessage(kDebugTouchController_HandleGestureStartEvent,"");if(this.preventDefault){a.preventDefault()}},handleGestureEndEvent:function(a){debugMessage(kDebugTouchController_HandleGestureEndEvent,"");if(this.preventDefault){a.preventDefault()}}}); \ No newline at end of file diff --git a/12-functions/assets/player/Utilities.js b/12-functions/assets/player/Utilities.js new file mode 100644 index 0000000..14095f3 --- /dev/null +++ b/12-functions/assets/player/Utilities.js @@ -0,0 +1 @@ +var s=Class.create({initialize:function(){}});function getMobileOSVersionInfo(){var b=navigator.userAgent.match(/iPhone OS ([\d_]+)/)||navigator.userAgent.match(/iPad OS ([\d_]+)/)||navigator.userAgent.match(/CPU OS ([\d_]+)/);var c={major:0,minor:0,point:0};if(b){var a=b[1].split("_");c.major=parseInt(a[0]);if(a.length>1){c.minor=parseInt(a[1])}if(a.length>2){c.point=parseInt(a[2])}}return c}function isMobileSafari(){if(navigator.userAgent.indexOf("iPod")!=-1){return true}else{if(navigator.userAgent.indexOf("iPhone")!=-1){return true}else{if(navigator.userAgent.indexOf("iPad")!=-1){return true}else{return false}}}}function isiPad(){return(navigator.userAgent.indexOf("iPad")!=-1)}function getUrlParameter(b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var a="[\\?&]"+b+"=([^&#]*)";var c=new RegExp(a);var d=c.exec(window.location.href);if(d==null){return""}else{return d[1]}}function setElementProperty(c,b,a){if(browserPrefix=="ms"){c.style[b]=a}else{c.style.setProperty(b,a,null)}}function setElementOpaque(a){a.style.opacity=1}function setElementTransparent(a){a.style.opacity=0}function setElementPosition(b,e,d,c,a){if(b==null){window.console.log("null element passed to setElementPosition "+e+", "+d+", "+c+", "+a);return}b.style.top=e+"px";b.style.left=d+"px";b.style.width=c+"px";b.style.height=a+"px"}function setElementRect(a,b){if(a==null){return}a.style.top=b.y;a.style.left=b.x;a.style.width=b.width;a.style.height=b.height}function centerElementInDiv(c,e,d,a,b){if(c==null){return}var g=(b-d)/2;var f=(a-e)/2;setElementPosition(c,g,f,e,d)}function showElement(a){if(a==null){return}a.style.visibility="visible"}function hideElement(a){if(a==null){return}a.style.visibility="hidden"}function runInNextEventLoop(a){setTimeout(a,100)}function ensureScaleFactorNotZero(a){if(a==0){return 0.000001}else{return a}}function scaleSizeWithinSize(c,g,e,d){var f={};var b=c/g;var a=e/d;if(b>a){f.width=e;f.height=g*(e/c)}else{if(b9?"":"0")+a}Object.extend(Date.prototype,{format:function(D){D=D+"";var I=this;var l="";var v=0;var G="";var f="";var j=I.getFullYear()+"";var g=I.getMonth()+1;var F=I.getDate();var o=I.getDay();var n=I.getHours();var x=I.getMinutes();var q=I.getSeconds();var t,u,b,r,J,e,C,B,z,p,N,n,L,i,a,A;var w=new Object();if(j.length<4){j=""+(j-0+1900)}w.y=""+j;w.yyyy=j;w.yy=j.substring(2,4);w.M=g;w.MM=LZ(g);w.MMM=MONTH_NAMES[g-1];w.NNN=MONTH_NAMES[g+11];w.d=F;w.dd=LZ(F);w.E=DAY_NAMES[o+7];w.EE=DAY_NAMES[o];w.H=n;w.HH=LZ(n);if(n==0){w.h=12}else{if(n>12){w.h=n-12}else{w.h=n}}w.hh=LZ(w.h);if(n>11){w.K=n-12}else{w.K=n}w.k=n+1;w.KK=LZ(w.K);w.kk=LZ(w.k);if(n>11){w.a="PM"}else{w.a="AM"}w.m=x;w.mm=LZ(x);w.s=q;w.ss=LZ(q);while(v-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div"),b=document.createElement("form"),a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b0){if(match=source.match(pattern)){result+=source.slice(0,match.index);result+=String.interpret(replacement(match));source=source.slice(match.index+match[0].length)}else{result+=source,source=""}}return result}function sub(pattern,replacement,count){replacement=prepareReplacement(replacement);count=Object.isUndefined(count)?1:count;return this.gsub(pattern,function(match){if(--count<0){return match[0]}return replacement(match)})}function scan(pattern,iterator){this.gsub(pattern,iterator);return String(this)}function truncate(length,truncation){length=length||30;truncation=Object.isUndefined(truncation)?"...":truncation;return this.length>length?this.slice(0,length-truncation.length)+truncation:String(this)}function strip(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}function stripTags(){return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")}function stripScripts(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")}function extractScripts(){var matchAll=new RegExp(Prototype.ScriptFragment,"img"),matchOne=new RegExp(Prototype.ScriptFragment,"im");return(this.match(matchAll)||[]).map(function(scriptTag){return(scriptTag.match(matchOne)||["",""])[1]})}function evalScripts(){return this.extractScripts().map(function(script){return eval(script)})}function escapeHTML(){return this.replace(/&/g,"&").replace(//g,">")}function unescapeHTML(){return this.stripTags().replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function toQueryParams(separator){var match=this.strip().match(/([^?#]*)(#.*)?$/);if(!match){return{}}return match[1].split(separator||"&").inject({},function(hash,pair){if((pair=pair.split("="))[0]){var key=decodeURIComponent(pair.shift()),value=pair.length>1?pair.join("="):pair[0];if(value!=undefined){value=decodeURIComponent(value)}if(key in hash){if(!Object.isArray(hash[key])){hash[key]=[hash[key]]}hash[key].push(value)}else{hash[key]=value}}return hash})}function toArray(){return this.split("")}function succ(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)}function times(count){return count<1?"":new Array(count+1).join(this)}function camelize(){return this.replace(/-+(.)?/g,function(match,chr){return chr?chr.toUpperCase():""})}function capitalize(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()}function underscore(){return this.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/-/g,"_").toLowerCase()}function dasherize(){return this.replace(/_/g,"-")}function inspect(useDoubleQuotes){var escapedString=this.replace(/[\x00-\x1f\\]/g,function(character){if(character in String.specialChar){return String.specialChar[character]}return"\\u00"+character.charCodeAt().toPaddedString(2,16)});if(useDoubleQuotes){return'"'+escapedString.replace(/"/g,'\\"')+'"'}return"'"+escapedString.replace(/'/g,"\\'")+"'"}function unfilterJSON(filter){return this.replace(filter||Prototype.JSONFilter,"$1")}function isJSON(){var str=this;if(str.blank()){return false}str=str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@");str=str.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");str=str.replace(/(?:^|:|,)(?:\s*\[)+/g,"");return(/^[\],:{}\s]*$/).test(str)}function evalJSON(sanitize){var json=this.unfilterJSON(),cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(cx.test(json)){json=json.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}try{if(!sanitize||json.isJSON()){return eval("("+json+")")}}catch(e){}throw new SyntaxError("Badly formed JSON string: "+this.inspect())}function parseJSON(){var json=this.unfilterJSON();return JSON.parse(json)}function include(pattern){return this.indexOf(pattern)>-1}function startsWith(pattern){return this.lastIndexOf(pattern,0)===0}function endsWith(pattern){var d=this.length-pattern.length;return d>=0&&this.indexOf(pattern,d)===d}function empty(){return this==""}function blank(){return/^\s*$/.test(this)}function interpolate(object,pattern){return new Template(this,pattern).evaluate(object)}return{gsub:gsub,sub:sub,scan:scan,truncate:truncate,strip:String.prototype.trim||strip,stripTags:stripTags,stripScripts:stripScripts,extractScripts:extractScripts,evalScripts:evalScripts,escapeHTML:escapeHTML,unescapeHTML:unescapeHTML,toQueryParams:toQueryParams,parseQuery:toQueryParams,toArray:toArray,succ:succ,times:times,camelize:camelize,capitalize:capitalize,underscore:underscore,dasherize:dasherize,inspect:inspect,unfilterJSON:unfilterJSON,isJSON:isJSON,evalJSON:NATIVE_JSON_PARSE_SUPPORT?parseJSON:evalJSON,include:include,startsWith:startsWith,endsWith:endsWith,empty:empty,blank:blank,interpolate:interpolate}})());var Template=Class.create({initialize:function(a,b){this.template=a.toString();this.pattern=b||Template.Pattern},evaluate:function(a){if(a&&Object.isFunction(a.toTemplateReplacements)){a=a.toTemplateReplacements()}return this.template.gsub(this.pattern,function(d){if(a==null){return(d[1]+"")}var f=d[1]||"";if(f=="\\"){return d[2]}var b=a,g=d[3],e=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;d=e.exec(g);if(d==null){return f}while(d!=null){var c=d[1].startsWith("[")?d[2].replace(/\\\\]/g,"]"):d[1];b=b[c];if(null==b||""==d[3]){break}g=g.substring("["==d[3]?d[1].length:d[0].length);d=e.exec(g)}return f+String.interpret(b)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;var $break={};var Enumerable=(function(){function c(y,x){var w=0;try{this._each(function(A){y.call(x,A,w++)})}catch(z){if(z!=$break){throw z}}return this}function r(z,y,x){var w=-z,A=[],B=this.toArray();if(z<1){return B}while((w+=z)=w){w=A}});return w}function n(y,x){y=y||Prototype.K;var w;this.each(function(A,z){A=y.call(x,A,z);if(w==null||Ay?1:0}).pluck("value")}function o(){return this.map()}function s(){var x=Prototype.K,w=$A(arguments);if(Object.isFunction(w.last())){x=w.pop()}var y=[this].concat(w).map($A);return this.map(function(A,z){return x(y.pluck(z))})}function k(){return this.toArray().length}function u(){return"#"}return{each:c,eachSlice:r,all:b,every:b,any:i,some:i,collect:j,map:j,detect:t,findAll:h,select:h,filter:h,grep:g,include:a,member:a,inGroupsOf:q,inject:l,invoke:v,max:p,min:n,partition:e,pluck:f,reject:d,sortBy:m,toArray:o,entries:o,zip:s,size:k,inspect:u,find:t}})();function $A(c){if(!c){return[]}if("toArray" in Object(c)){return c.toArray()}var b=c.length||0,a=new Array(b);while(b--){a[b]=c[b]}return a}function $w(a){if(!Object.isString(a)){return[]}a=a.strip();return a?a.split(/\s+/):[]}Array.from=$A;(function(){var r=Array.prototype,m=r.slice,o=r.forEach;function b(w,v){for(var u=0,x=this.length>>>0;u"}function h(){return new Hash(this)}return{initialize:e,_each:f,set:j,get:c,unset:m,toObject:o,toTemplateReplacements:o,keys:n,values:l,index:g,merge:i,update:d,toQueryString:a,inspect:k,toJSON:o,clone:h}})());Hash.from=$H;Object.extend(Number.prototype,(function(){function d(){return this.toPaddedString(2,16)}function b(){return this+1}function h(j,i){$R(0,this,true).each(j,i);return this}function g(k,j){var i=this.toString(j||10);return"0".times(k-i.length)+i}function a(){return Math.abs(this)}function c(){return Math.round(this)}function e(){return Math.ceil(this)}function f(){return Math.floor(this)}return{toColorPart:d,succ:b,times:h,toPaddedString:g,abs:a,round:c,ceil:e,floor:f}})());function $R(c,a,b){return new ObjectRange(c,a,b)}var ObjectRange=Class.create(Enumerable,(function(){function b(f,d,e){this.start=f;this.end=d;this.exclusive=e}function c(d){var e=this.start;while(this.include(e)){d(e);e=e.succ()}}function a(d){if(d1&&!((a==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)}},setRequestHeaders:function(){var e={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){e["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){e.Connection="close"}}if(typeof this.options.requestHeaders=="object"){var c=this.options.requestHeaders;if(Object.isFunction(c.push)){for(var b=0,d=c.length;b=200&&a<300)||a==304},getStatus:function(){try{if(this.transport.status===1223){return 204}return this.transport.status||0}catch(a){return 0}},respondToReadyState:function(a){var c=Ajax.Request.Events[a],b=new Ajax.Response(this);if(c=="Complete"){try{this._complete=true;(this.options["on"+b.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(b,b.headerJSON)}catch(d){this.dispatchException(d)}var f=b.getHeader("Content-type");if(this.options.evalJS=="force"||(this.options.evalJS&&this.isSameOrigin()&&f&&f.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))){this.evalResponse()}}try{(this.options["on"+c]||Prototype.emptyFunction)(b,b.headerJSON);Ajax.Responders.dispatch("on"+c,this,b,b.headerJSON)}catch(d){this.dispatchException(d)}if(c=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}},isSameOrigin:function(){var a=this.url.match(/^\s*https?:\/\/[^\/]*/);return !a||(a[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""}))},getHeader:function(a){try{return this.transport.getResponseHeader(a)||null}catch(b){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())}catch(e){this.dispatchException(e)}},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch("onException",this,a)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Response=Class.create({initialize:function(c){this.request=c;var d=this.transport=c.transport,a=this.readyState=d.readyState;if((a>2&&!Prototype.Browser.IE)||a==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(d.responseText);this.headerJSON=this._getHeaderJSON()}if(a==4){var b=d.responseXML;this.responseXML=Object.isUndefined(b)?null:b;this.responseJSON=this._getResponseJSON()}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||""}catch(a){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()}catch(a){return null}},getResponseHeader:function(a){return this.transport.getResponseHeader(a)},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var a=this.getHeader("X-JSON");if(!a){return null}a=decodeURIComponent(escape(a));try{return a.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}},_getResponseJSON:function(){var a=this.request.options;if(!a.evalJSON||(a.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json"))||this.responseText.blank()){return null}try{return this.responseText.evalJSON(a.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,a,c,b){this.container={success:(a.success||a),failure:(a.failure||(a.success?null:a))};b=Object.clone(b);var d=b.onComplete;b.onComplete=(function(e,f){this.updateContent(e.responseText);if(Object.isFunction(d)){d(e,f)}}).bind(this);$super(c,b)},updateContent:function(d){var c=this.container[this.success()?"success":"failure"],a=this.options;if(!a.evalScripts){d=d.stripScripts()}if(c=$(c)){if(a.insertion){if(Object.isString(a.insertion)){var b={};b[a.insertion]=d;c.insert(b)}else{a.insertion(c,d)}}else{c.update(d)}}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,a,c,b){$super(b);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=a;this.url=c;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(a){if(this.options.decay){this.decay=(a.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=a.responseText}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});function $(b){if(arguments.length>1){for(var a=0,d=[],c=arguments.length;a');return e.tagName.toLowerCase()==="input"&&e.name==="x"}catch(f){return false}})();var a=c.Element;c.Element=function(g,f){f=f||{};g=g.toLowerCase();var e=Element.cache;if(b&&f.name){g="<"+g+' name="'+f.name+'">';delete f.name;return Element.writeAttribute(document.createElement(g),f)}if(!e[g]){e[g]=Element.extend(document.createElement(g))}var h=d(g,f)?e[g].cloneNode(false):document.createElement(g);return Element.writeAttribute(h,f)};Object.extend(c.Element,a||{});if(a){c.Element.prototype=a.prototype}})(this);Element.idCounter=1;Element.cache={};Element._purgeElement=function(b){var a=b._prototypeUID;if(a){Element.stopObserving(b);b._prototypeUID=void 0;delete Element.Storage[a]}};Element.Methods={visible:function(a){return $(a).style.display!="none"},toggle:function(a){a=$(a);Element[Element.visible(a)?"hide":"show"](a);return a},hide:function(a){a=$(a);a.style.display="none";return a},show:function(a){a=$(a);a.style.display="";return a},remove:function(a){a=$(a);a.parentNode.removeChild(a);return a},update:(function(){var d=(function(){var g=document.createElement("select"),h=true;g.innerHTML='';if(g.options&&g.options[0]){h=g.options[0].nodeName.toUpperCase()!=="OPTION"}g=null;return h})();var b=(function(){try{var g=document.createElement("table");if(g&&g.tBodies){g.innerHTML="test";var i=typeof g.tBodies[0]=="undefined";g=null;return i}}catch(h){return true}})();var a=(function(){try{var g=document.createElement("div");g.innerHTML="";var i=(g.childNodes.length===0);g=null;return i}catch(h){return true}})();var c=d||b||a;var f=(function(){var g=document.createElement("script"),i=false;try{g.appendChild(document.createTextNode(""));i=!g.firstChild||g.firstChild&&g.firstChild.nodeType!==3}catch(h){i=true}g=null;return i})();function e(l,m){l=$(l);var g=Element._purgeElement;var n=l.getElementsByTagName("*"),k=n.length;while(k--){g(n[k])}if(m&&m.toElement){m=m.toElement()}if(Object.isElement(m)){return l.update().insert(m)}m=Object.toHTML(m);var j=l.tagName.toUpperCase();if(j==="SCRIPT"&&f){l.text=m;return l}if(c){if(j in Element._insertionTranslations.tags){while(l.firstChild){l.removeChild(l.firstChild)}Element._getContentFromAnonymousElement(j,m.stripScripts()).each(function(i){l.appendChild(i)})}else{if(a&&Object.isString(m)&&m.indexOf("-1){while(l.firstChild){l.removeChild(l.firstChild)}var h=Element._getContentFromAnonymousElement(j,m.stripScripts(),true);h.each(function(i){l.appendChild(i)})}else{l.innerHTML=m.stripScripts()}}}else{l.innerHTML=m.stripScripts()}m.evalScripts.bind(m).defer();return l}return e})(),replace:function(b,c){b=$(b);if(c&&c.toElement){c=c.toElement()}else{if(!Object.isElement(c)){c=Object.toHTML(c);var a=b.ownerDocument.createRange();a.selectNode(b);c.evalScripts.bind(c).defer();c=a.createContextualFragment(c.stripScripts())}}b.parentNode.replaceChild(c,b);return b},insert:function(c,e){c=$(c);if(Object.isString(e)||Object.isNumber(e)||Object.isElement(e)||(e&&(e.toElement||e.toHTML))){e={bottom:e}}var d,f,b,g;for(var a in e){d=e[a];a=a.toLowerCase();f=Element._insertionTranslations[a];if(d&&d.toElement){d=d.toElement()}if(Object.isElement(d)){f(c,d);continue}d=Object.toHTML(d);b=((a=="before"||a=="after")?c.parentNode:c).tagName.toUpperCase();g=Element._getContentFromAnonymousElement(b,d.stripScripts());if(a=="top"||a=="after"){g.reverse()}g.each(f.curry(c));d.evalScripts.bind(d).defer()}return c},wrap:function(b,c,a){b=$(b);if(Object.isElement(c)){$(c).writeAttribute(a||{})}else{if(Object.isString(c)){c=new Element(c,a)}else{c=new Element("div",c)}}if(b.parentNode){b.parentNode.replaceChild(c,b)}c.appendChild(b);return c},inspect:function(b){b=$(b);var a="<"+b.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(f){var e=f.first(),c=f.last(),d=(b[e]||"").toString();if(d){a+=" "+c+"="+d.inspect(true)}});return a+">"},recursivelyCollect:function(a,c,d){a=$(a);d=d||-1;var b=[];while(a=a[c]){if(a.nodeType==1){b.push(Element.extend(a))}if(b.length==d){break}}return b},ancestors:function(a){return Element.recursivelyCollect(a,"parentNode")},descendants:function(a){return Element.select(a,"*")},firstDescendant:function(a){a=$(a).firstChild;while(a&&a.nodeType!=1){a=a.nextSibling}return $(a)},immediateDescendants:function(b){var a=[],c=$(b).firstChild;while(c){if(c.nodeType===1){a.push(Element.extend(c))}c=c.nextSibling}return a},previousSiblings:function(a,b){return Element.recursivelyCollect(a,"previousSibling")},nextSiblings:function(a){return Element.recursivelyCollect(a,"nextSibling")},siblings:function(a){a=$(a);return Element.previousSiblings(a).reverse().concat(Element.nextSiblings(a))},match:function(b,a){b=$(b);if(Object.isString(a)){return Prototype.Selector.match(b,a)}return a.match(b)},up:function(b,d,a){b=$(b);if(arguments.length==1){return $(b.parentNode)}var c=Element.ancestors(b);return Object.isNumber(d)?c[d]:Prototype.Selector.find(c,d,a)},down:function(b,c,a){b=$(b);if(arguments.length==1){return Element.firstDescendant(b)}return Object.isNumber(c)?Element.descendants(b)[c]:Element.select(b,c)[a||0]},previous:function(b,c,a){b=$(b);if(Object.isNumber(c)){a=c,c=false}if(!Object.isNumber(a)){a=0}if(c){return Prototype.Selector.find(b.previousSiblings(),c,a)}else{return b.recursivelyCollect("previousSibling",a+1)[a]}},next:function(b,d,a){b=$(b);if(Object.isNumber(d)){a=d,d=false}if(!Object.isNumber(a)){a=0}if(d){return Prototype.Selector.find(b.nextSiblings(),d,a)}else{var c=Object.isNumber(a)?a+1:1;return b.recursivelyCollect("nextSibling",a+1)[a]}},select:function(a){a=$(a);var b=Array.prototype.slice.call(arguments,1).join(", ");return Prototype.Selector.select(b,a)},adjacent:function(a){a=$(a);var b=Array.prototype.slice.call(arguments,1).join(", ");return Prototype.Selector.select(b,a.parentNode).without(a)},identify:function(a){a=$(a);var b=Element.readAttribute(a,"id");if(b){return b}do{b="anonymous_element_"+Element.idCounter++}while($(b));Element.writeAttribute(a,"id",b);return b},readAttribute:function(c,a){c=$(c);if(Prototype.Browser.IE){var b=Element._attributeTranslations.read;if(b.values[a]){return b.values[a](c,a)}if(b.names[a]){a=b.names[a]}if(a.include(":")){return(!c.attributes||!c.attributes[a])?null:c.attributes[a].value}}return c.getAttribute(a)},writeAttribute:function(e,c,f){e=$(e);var b={},d=Element._attributeTranslations.write;if(typeof c=="object"){b=c}else{b[c]=Object.isUndefined(f)?true:f}for(var a in b){c=d.names[a]||a;f=b[a];if(d.values[a]){c=d.values[a](e,f)}if(f===false||f===null){e.removeAttribute(c)}else{if(f===true){e.setAttribute(c,c)}else{e.setAttribute(c,f)}}}return e},getHeight:function(a){return Element.getDimensions(a).height},getWidth:function(a){return Element.getDimensions(a).width},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(!(a=$(a))){return}var c=a.className;return(c.length>0&&(c==b||new RegExp("(^|\\s)"+b+"(\\s|$)").test(c)))},addClassName:function(a,b){if(!(a=$(a))){return}if(!Element.hasClassName(a,b)){a.className+=(a.className?" ":"")+b}return a},removeClassName:function(a,b){if(!(a=$(a))){return}a.className=a.className.replace(new RegExp("(^|\\s+)"+b+"(\\s+|$)")," ").strip();return a},toggleClassName:function(a,b){if(!(a=$(a))){return}return Element[Element.hasClassName(a,b)?"removeClassName":"addClassName"](a,b)},cleanWhitespace:function(b){b=$(b);var c=b.firstChild;while(c){var a=c.nextSibling;if(c.nodeType==3&&!/\S/.test(c.nodeValue)){b.removeChild(c)}c=a}return b},empty:function(a){return $(a).innerHTML.blank()},descendantOf:function(b,a){b=$(b),a=$(a);if(b.compareDocumentPosition){return(b.compareDocumentPosition(a)&8)===8}if(a.contains){return a.contains(b)&&a!==b}while(b=b.parentNode){if(b==a){return true}}return false},scrollTo:function(a){a=$(a);var b=Element.cumulativeOffset(a);window.scrollTo(b[0],b[1]);return a},getStyle:function(b,c){b=$(b);c=c=="float"?"cssFloat":c.camelize();var d=b.style[c];if(!d||d=="auto"){var a=document.defaultView.getComputedStyle(b,null);d=a?a[c]:null}if(c=="opacity"){return d?parseFloat(d):1}return d=="auto"?null:d},getOpacity:function(a){return $(a).getStyle("opacity")},setStyle:function(b,c){b=$(b);var e=b.style,a;if(Object.isString(c)){b.style.cssText+=";"+c;return c.include("opacity")?b.setOpacity(c.match(/opacity:\s*(\d?\.?\d*)/)[1]):b}for(var d in c){if(d=="opacity"){b.setOpacity(c[d])}else{e[(d=="float"||d=="cssFloat")?(Object.isUndefined(e.styleFloat)?"cssFloat":"styleFloat"):d]=c[d]}}return b},setOpacity:function(a,b){a=$(a);a.style.opacity=(b==1||b==="")?"":(b<0.00001)?0:b;return a},makePositioned:function(a){a=$(a);var b=Element.getStyle(a,"position");if(b=="static"||!b){a._madePositioned=true;a.style.position="relative";if(Prototype.Browser.Opera){a.style.top=0;a.style.left=0}}return a},undoPositioned:function(a){a=$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=""}return a},makeClipping:function(a){a=$(a);if(a._overflow){return a}a._overflow=Element.getStyle(a,"overflow")||"auto";if(a._overflow!=="hidden"){a.style.overflow="hidden"}return a},undoClipping:function(a){a=$(a);if(!a._overflow){return a}a.style.overflow=a._overflow=="auto"?"":a._overflow;a._overflow=null;return a},clonePosition:function(b,d){var a=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});d=$(d);var e=Element.viewportOffset(d),f=[0,0],c=null;b=$(b);if(Element.getStyle(b,"position")=="absolute"){c=Element.getOffsetParent(b);f=Element.viewportOffset(c)}if(c==document.body){f[0]-=document.body.offsetLeft;f[1]-=document.body.offsetTop}if(a.setLeft){b.style.left=(e[0]-f[0]+a.offsetLeft)+"px"}if(a.setTop){b.style.top=(e[1]-f[1]+a.offsetTop)+"px"}if(a.setWidth){b.style.width=d.offsetWidth+"px"}if(a.setHeight){b.style.height=d.offsetHeight+"px"}return b}};Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}};if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(d,b,c){switch(c){case"height":case"width":if(!Element.visible(b)){return null}var e=parseInt(d(b,c),10);if(e!==b["offset"+c.capitalize()]){return e+"px"}var a;if(c==="height"){a=["border-top-width","padding-top","padding-bottom","border-bottom-width"]}else{a=["border-left-width","padding-left","padding-right","border-right-width"]}return a.inject(e,function(f,g){var h=d(b,g);return h===null?f:f-parseInt(h,10)})+"px";default:return d(b,c)}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(c,a,b){if(b==="title"){return a.title}return c(a,b)})}else{if(Prototype.Browser.IE){Element.Methods.getStyle=function(a,b){a=$(a);b=(b=="float"||b=="cssFloat")?"styleFloat":b.camelize();var c=a.style[b];if(!c&&a.currentStyle){c=a.currentStyle[b]}if(b=="opacity"){if(c=(a.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(c[1]){return parseFloat(c[1])/100}}return 1}if(c=="auto"){if((b=="width"||b=="height")&&(a.getStyle("display")!="none")){return a["offset"+b.capitalize()]+"px"}return null}return c};Element.Methods.setOpacity=function(b,e){function f(g){return g.replace(/alpha\([^\)]*\)/gi,"")}b=$(b);var a=b.currentStyle;if((a&&!a.hasLayout)||(!a&&b.style.zoom=="normal")){b.style.zoom=1}var d=b.getStyle("filter"),c=b.style;if(e==1||e===""){(d=f(d))?c.filter=d:c.removeAttribute("filter");return b}else{if(e<0.00001){e=0}}c.filter=f(d)+"alpha(opacity="+(e*100)+")";return b};Element._attributeTranslations=(function(){var b="className",a="for",c=document.createElement("div");c.setAttribute(b,"x");if(c.className!=="x"){c.setAttribute("class","x");if(c.className==="x"){b="class"}}c=null;c=document.createElement("label");c.setAttribute(a,"x");if(c.htmlFor!=="x"){c.setAttribute("htmlFor","x");if(c.htmlFor==="x"){a="htmlFor"}}c=null;return{read:{names:{"class":b,className:b,"for":a,htmlFor:a},values:{_getAttr:function(d,e){return d.getAttribute(e)},_getAttr2:function(d,e){return d.getAttribute(e,2)},_getAttrNode:function(d,f){var e=d.getAttributeNode(f);return e?e.value:""},_getEv:(function(){var d=document.createElement("div"),g;d.onclick=Prototype.emptyFunction;var e=d.getAttribute("onclick");if(String(e).indexOf("{")>-1){g=function(f,h){h=f.getAttribute(h);if(!h){return null}h=h.toString();h=h.split("{")[1];h=h.split("}")[0];return h.strip()}}else{if(e===""){g=function(f,h){h=f.getAttribute(h);if(!h){return null}return h.strip()}}}d=null;return g})(),_flag:function(d,e){return $(d).hasAttribute(e)?e:null},style:function(d){return d.style.cssText.toLowerCase()},title:function(d){return d.title}}}}})();Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(a,b){a.checked=!!b},style:function(a,b){a.style.cssText=b?b:""}}};Element._attributeTranslations.has={};$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc frameBorder").each(function(a){Element._attributeTranslations.write.names[a.toLowerCase()]=a;Element._attributeTranslations.has[a.toLowerCase()]=a});(function(a){Object.extend(a,{href:a._getAttr2,src:a._getAttr2,type:a._getAttr,action:a._getAttrNode,disabled:a._flag,checked:a._flag,readonly:a._flag,multiple:a._flag,onload:a._getEv,onunload:a._getEv,onclick:a._getEv,ondblclick:a._getEv,onmousedown:a._getEv,onmouseup:a._getEv,onmouseover:a._getEv,onmousemove:a._getEv,onmouseout:a._getEv,onfocus:a._getEv,onblur:a._getEv,onkeypress:a._getEv,onkeydown:a._getEv,onkeyup:a._getEv,onsubmit:a._getEv,onreset:a._getEv,onselect:a._getEv,onchange:a._getEv})})(Element._attributeTranslations.read.values);if(Prototype.BrowserFeatures.ElementExtensions){(function(){function a(e){var b=e.getElementsByTagName("*"),d=[];for(var c=0,f;f=b[c];c++){if(f.tagName!=="!"){d.push(f)}}return d}Element.Methods.down=function(c,d,b){c=$(c);if(arguments.length==1){return c.firstDescendant()}return Object.isNumber(d)?a(c)[d]:Element.select(c,d)[b||0]}})()}}else{if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=(b==1)?0.999999:(b==="")?"":(b<0.00001)?0:b;return a}}else{if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=(b==1||b==="")?"":(b<0.00001)?0:b;if(b==1){if(a.tagName.toUpperCase()=="IMG"&&a.width){a.width++;a.width--}else{try{var d=document.createTextNode(" ");a.appendChild(d);a.removeChild(d)}catch(c){}}}return a}}}}}if("outerHTML" in document.documentElement){Element.Methods.replace=function(c,e){c=$(c);if(e&&e.toElement){e=e.toElement()}if(Object.isElement(e)){c.parentNode.replaceChild(e,c);return c}e=Object.toHTML(e);var d=c.parentNode,b=d.tagName.toUpperCase();if(Element._insertionTranslations.tags[b]){var f=c.next(),a=Element._getContentFromAnonymousElement(b,e.stripScripts());d.removeChild(c);if(f){a.each(function(g){d.insertBefore(g,f)})}else{a.each(function(g){d.appendChild(g)})}}else{c.outerHTML=e.stripScripts()}e.evalScripts.bind(e).defer();return c}}Element._returnOffset=function(b,c){var a=[b,c];a.left=b;a.top=c;return a};Element._getContentFromAnonymousElement=function(e,d,f){var g=new Element("div"),c=Element._insertionTranslations.tags[e];var a=false;if(c){a=true}else{if(f){a=true;c=["","",0]}}if(a){g.innerHTML=" "+c[0]+d+c[1];g.removeChild(g.firstChild);for(var b=c[2];b--;){g=g.firstChild}}else{g.innerHTML=d}return $A(g.childNodes)};Element._insertionTranslations={before:function(a,b){a.parentNode.insertBefore(b,a)},top:function(a,b){a.insertBefore(b,a.firstChild)},bottom:function(a,b){a.appendChild(b)},after:function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},tags:{TABLE:["","
",1],TBODY:["","
",2],TR:["","
",3],TD:["
","
",4],SELECT:["",1]}};(function(){var a=Element._insertionTranslations.tags;Object.extend(a,{THEAD:a.TBODY,TFOOT:a.TBODY,TH:a.TD})})();Element.Methods.Simulated={hasAttribute:function(a,c){c=Element._attributeTranslations.has[c]||c;var b=$(a).getAttributeNode(c);return !!(b&&b.specified)}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);(function(a){if(!Prototype.BrowserFeatures.ElementExtensions&&a.__proto__){window.HTMLElement={};window.HTMLElement.prototype=a.__proto__;Prototype.BrowserFeatures.ElementExtensions=true}a=null})(document.createElement("div"));Element.extend=(function(){function c(g){if(typeof window.Element!="undefined"){var i=window.Element.prototype;if(i){var k="_"+(Math.random()+"").slice(2),h=document.createElement(g);i[k]="x";var j=(h[k]!=="x");delete i[k];h=null;return j}}return false}function b(h,g){for(var j in g){var i=g[j];if(Object.isFunction(i)&&!(j in h)){h[j]=i.methodize()}}}var d=c("object");if(Prototype.BrowserFeatures.SpecificElementExtensions){if(d){return function(h){if(h&&typeof h._extendedByPrototype=="undefined"){var g=h.tagName;if(g&&(/^(?:object|applet|embed)$/i.test(g))){b(h,Element.Methods);b(h,Element.Methods.Simulated);b(h,Element.Methods.ByTag[g.toUpperCase()])}}return h}}return Prototype.K}var a={},e=Element.Methods.ByTag;var f=Object.extend(function(i){if(!i||typeof i._extendedByPrototype!="undefined"||i.nodeType!=1||i==window){return i}var g=Object.clone(a),h=i.tagName.toUpperCase();if(e[h]){Object.extend(g,e[h])}b(i,g);i._extendedByPrototype=Prototype.emptyFunction;return i},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(a,Element.Methods);Object.extend(a,Element.Methods.Simulated)}}});f.refresh();return f})();if(document.documentElement.hasAttribute){Element.hasAttribute=function(a,b){return a.hasAttribute(b)}}else{Element.hasAttribute=Element.Methods.Simulated.hasAttribute}Element.addMethods=function(c){var i=Prototype.BrowserFeatures,d=Element.Methods.ByTag;if(!c){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods),BUTTON:Object.clone(Form.Element.Methods)})}if(arguments.length==2){var b=c;c=arguments[1]}if(!b){Object.extend(Element.Methods,c||{})}else{if(Object.isArray(b)){b.each(g)}else{g(b)}}function g(k){k=k.toUpperCase();if(!Element.Methods.ByTag[k]){Element.Methods.ByTag[k]={}}Object.extend(Element.Methods.ByTag[k],c)}function a(m,l,k){k=k||false;for(var o in m){var n=m[o];if(!Object.isFunction(n)){continue}if(!k||!(o in l)){l[o]=n.methodize()}}}function e(n){var k;var m={OPTGROUP:"OptGroup",TEXTAREA:"TextArea",P:"Paragraph",FIELDSET:"FieldSet",UL:"UList",OL:"OList",DL:"DList",DIR:"Directory",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading",Q:"Quote",INS:"Mod",DEL:"Mod",A:"Anchor",IMG:"Image",CAPTION:"TableCaption",COL:"TableCol",COLGROUP:"TableCol",THEAD:"TableSection",TFOOT:"TableSection",TBODY:"TableSection",TR:"TableRow",TH:"TableCell",TD:"TableCell",FRAMESET:"FrameSet",IFRAME:"IFrame"};if(m[n]){k="HTML"+m[n]+"Element"}if(window[k]){return window[k]}k="HTML"+n+"Element";if(window[k]){return window[k]}k="HTML"+n.capitalize()+"Element";if(window[k]){return window[k]}var l=document.createElement(n),o=l.__proto__||l.constructor.prototype;l=null;return o}var h=window.HTMLElement?HTMLElement.prototype:Element.prototype;if(i.ElementExtensions){a(Element.Methods,h);a(Element.Methods.Simulated,h,true)}if(i.SpecificElementExtensions){for(var j in Element.Methods.ByTag){var f=e(j);if(Object.isUndefined(f)){continue}a(d[j],f.prototype)}}Object.extend(Element,Element.Methods);delete Element.ByTag;if(Element.extend.refresh){Element.extend.refresh()}Element.cache={}};document.viewport={getDimensions:function(){return{width:this.getWidth(),height:this.getHeight()}},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)}};(function(b){var g=Prototype.Browser,e=document,c,d={};function a(){if(g.WebKit&&!e.evaluate){return document}if(g.Opera&&window.parseFloat(window.opera.version())<9.5){return document.body}return document.documentElement}function f(h){if(!c){c=a()}d[h]="client"+h;b["get"+h]=function(){return c[d[h]]};return b["get"+h]()}b.getWidth=f.curry("Width");b.getHeight=f.curry("Height")})(document.viewport);Element.Storage={UID:1};Element.addMethods({getStorage:function(b){if(!(b=$(b))){return}var a;if(b===window){a=0}else{if(typeof b._prototypeUID==="undefined"){b._prototypeUID=Element.Storage.UID++}a=b._prototypeUID}if(!Element.Storage[a]){Element.Storage[a]=$H()}return Element.Storage[a]},store:function(b,a,c){if(!(b=$(b))){return}if(arguments.length===2){Element.getStorage(b).update(a)}else{Element.getStorage(b).set(a,c)}return b},retrieve:function(c,b,a){if(!(c=$(c))){return}var e=Element.getStorage(c),d=e.get(b);if(Object.isUndefined(d)){e.set(b,a);d=a}return d},clone:function(c,a){if(!(c=$(c))){return}var e=c.cloneNode(a);e._prototypeUID=void 0;if(a){var d=Element.select(e,"*"),b=d.length;while(b--){d[b]._prototypeUID=void 0}}return Element.extend(e)},purge:function(c){if(!(c=$(c))){return}var a=Element._purgeElement;a(c);var d=c.getElementsByTagName("*"),b=d.length;while(b--){a(d[b])}return null}});(function(){function h(v){var u=v.match(/^(\d+)%?$/i);if(!u){return null}return(Number(u[1])/100)}function o(F,G,v){var y=null;if(Object.isElement(F)){y=F;F=y.getStyle(G)}if(F===null){return null}if((/^(?:-)?\d+(\.\d+)?(px)?$/i).test(F)){return window.parseFloat(F)}var A=F.include("%"),w=(v===document.viewport);if(/\d/.test(F)&&y&&y.runtimeStyle&&!(A&&w)){var u=y.style.left,E=y.runtimeStyle.left;y.runtimeStyle.left=y.currentStyle.left;y.style.left=F||0;F=y.style.pixelLeft;y.style.left=u;y.runtimeStyle.left=E;return F}if(y&&A){v=v||y.parentNode;var x=h(F);var B=null;var z=y.getStyle("position");var D=G.include("left")||G.include("right")||G.include("width");var C=G.include("top")||G.include("bottom")||G.include("height");if(v===document.viewport){if(D){B=document.viewport.getWidth()}else{if(C){B=document.viewport.getHeight()}}}else{if(D){B=$(v).measure("width")}else{if(C){B=$(v).measure("height")}}}return(B===null)?0:B*x}return 0}function g(u){if(Object.isString(u)&&u.endsWith("px")){return u}return u+"px"}function j(v){var u=v;while(v&&v.parentNode){var w=v.getStyle("display");if(w==="none"){return false}v=$(v.parentNode)}return true}var d=Prototype.K;if("currentStyle" in document.documentElement){d=function(u){if(!u.currentStyle.hasLayout){u.style.zoom=1}return u}}function f(u){if(u.include("border")){u=u+"-width"}return u.camelize()}Element.Layout=Class.create(Hash,{initialize:function($super,v,u){$super();this.element=$(v);Element.Layout.PROPERTIES.each(function(w){this._set(w,null)},this);if(u){this._preComputing=true;this._begin();Element.Layout.PROPERTIES.each(this._compute,this);this._end();this._preComputing=false}},_set:function(v,u){return Hash.prototype.set.call(this,v,u)},set:function(v,u){throw"Properties of Element.Layout are read-only."},get:function($super,v){var u=$super(v);return u===null?this._compute(v):u},_begin:function(){if(this._prepared){return}var y=this.element;if(j(y)){this._prepared=true;return}var A={position:y.style.position||"",width:y.style.width||"",visibility:y.style.visibility||"",display:y.style.display||""};y.store("prototype_original_styles",A);var B=y.getStyle("position"),u=y.getStyle("width");if(u==="0px"||u===null){y.style.display="block";u=y.getStyle("width")}var v=(B==="fixed")?document.viewport:y.parentNode;y.setStyle({position:"absolute",visibility:"hidden",display:"block"});var w=y.getStyle("width");var x;if(u&&(w===u)){x=o(y,"width",v)}else{if(B==="absolute"||B==="fixed"){x=o(y,"width",v)}else{var C=y.parentNode,z=$(C).getLayout();x=z.get("width")-this.get("margin-left")-this.get("border-left")-this.get("padding-left")-this.get("padding-right")-this.get("border-right")-this.get("margin-right")}}y.setStyle({width:x+"px"});this._prepared=true},_end:function(){var v=this.element;var u=v.retrieve("prototype_original_styles");v.store("prototype_original_styles",null);v.setStyle(u);this._prepared=false},_compute:function(v){var u=Element.Layout.COMPUTATIONS;if(!(v in u)){throw"Property not found."}return this._set(v,u[v].call(this,this.element))},toObject:function(){var u=$A(arguments);var v=(u.length===0)?Element.Layout.PROPERTIES:u.join(" ").split(" ");var w={};v.each(function(x){if(!Element.Layout.PROPERTIES.include(x)){return}var y=this.get(x);if(y!=null){w[x]=y}},this);return w},toHash:function(){var u=this.toObject.apply(this,arguments);return new Hash(u)},toCSS:function(){var u=$A(arguments);var w=(u.length===0)?Element.Layout.PROPERTIES:u.join(" ").split(" ");var v={};w.each(function(x){if(!Element.Layout.PROPERTIES.include(x)){return}if(Element.Layout.COMPOSITE_PROPERTIES.include(x)){return}var y=this.get(x);if(y!=null){v[f(x)]=y+"px"}},this);return v},inspect:function(){return"#"}});Object.extend(Element.Layout,{PROPERTIES:$w("height width top left right bottom border-left border-right border-top border-bottom padding-left padding-right padding-top padding-bottom margin-top margin-bottom margin-left margin-right padding-box-width padding-box-height border-box-width border-box-height margin-box-width margin-box-height"),COMPOSITE_PROPERTIES:$w("padding-box-width padding-box-height margin-box-width margin-box-height border-box-width border-box-height"),COMPUTATIONS:{height:function(w){if(!this._preComputing){this._begin()}var u=this.get("border-box-height");if(u<=0){if(!this._preComputing){this._end()}return 0}var x=this.get("border-top"),v=this.get("border-bottom");var z=this.get("padding-top"),y=this.get("padding-bottom");if(!this._preComputing){this._end()}return u-x-v-z-y},width:function(w){if(!this._preComputing){this._begin()}var v=this.get("border-box-width");if(v<=0){if(!this._preComputing){this._end()}return 0}var z=this.get("border-left"),u=this.get("border-right");var x=this.get("padding-left"),y=this.get("padding-right");if(!this._preComputing){this._end()}return v-z-u-x-y},"padding-box-height":function(v){var u=this.get("height"),x=this.get("padding-top"),w=this.get("padding-bottom");return u+x+w},"padding-box-width":function(u){var v=this.get("width"),w=this.get("padding-left"),x=this.get("padding-right");return v+w+x},"border-box-height":function(v){if(!this._preComputing){this._begin()}var u=v.offsetHeight;if(!this._preComputing){this._end()}return u},"border-box-width":function(u){if(!this._preComputing){this._begin()}var v=u.offsetWidth;if(!this._preComputing){this._end()}return v},"margin-box-height":function(v){var u=this.get("border-box-height"),w=this.get("margin-top"),x=this.get("margin-bottom");if(u<=0){return 0}return u+w+x},"margin-box-width":function(w){var v=this.get("border-box-width"),x=this.get("margin-left"),u=this.get("margin-right");if(v<=0){return 0}return v+x+u},top:function(u){var v=u.positionedOffset();return v.top},bottom:function(u){var x=u.positionedOffset(),v=u.getOffsetParent(),w=v.measure("height");var y=this.get("border-box-height");return w-y-x.top},left:function(u){var v=u.positionedOffset();return v.left},right:function(w){var y=w.positionedOffset(),x=w.getOffsetParent(),u=x.measure("width");var v=this.get("border-box-width");return u-v-y.left},"padding-top":function(u){return o(u,"paddingTop")},"padding-bottom":function(u){return o(u,"paddingBottom")},"padding-left":function(u){return o(u,"paddingLeft")},"padding-right":function(u){return o(u,"paddingRight")},"border-top":function(u){return o(u,"borderTopWidth")},"border-bottom":function(u){return o(u,"borderBottomWidth")},"border-left":function(u){return o(u,"borderLeftWidth")},"border-right":function(u){return o(u,"borderRightWidth")},"margin-top":function(u){return o(u,"marginTop")},"margin-bottom":function(u){return o(u,"marginBottom")},"margin-left":function(u){return o(u,"marginLeft")},"margin-right":function(u){return o(u,"marginRight")}}});if("getBoundingClientRect" in document.documentElement){Object.extend(Element.Layout.COMPUTATIONS,{right:function(v){var w=d(v.getOffsetParent());var x=v.getBoundingClientRect(),u=w.getBoundingClientRect();return(u.right-x.right).round()},bottom:function(v){var w=d(v.getOffsetParent());var x=v.getBoundingClientRect(),u=w.getBoundingClientRect();return(u.bottom-x.bottom).round()}})}Element.Offset=Class.create({initialize:function(v,u){this.left=v.round();this.top=u.round();this[0]=this.left;this[1]=this.top},relativeTo:function(u){return new Element.Offset(this.left-u.left,this.top-u.top)},inspect:function(){return"#".interpolate(this)},toString:function(){return"[#{left}, #{top}]".interpolate(this)},toArray:function(){return[this.left,this.top]}});function r(v,u){return new Element.Layout(v,u)}function b(u,v){return $(u).getLayout().get(v)}function n(v){v=$(v);var z=Element.getStyle(v,"display");if(z&&z!=="none"){return{width:v.offsetWidth,height:v.offsetHeight}}var w=v.style;var u={visibility:w.visibility,position:w.position,display:w.display};var y={visibility:"hidden",display:"block"};if(u.position!=="fixed"){y.position="absolute"}Element.setStyle(v,y);var x={width:v.offsetWidth,height:v.offsetHeight};Element.setStyle(v,u);return x}function l(u){u=$(u);if(e(u)||c(u)||m(u)||k(u)){return $(document.body)}var v=(Element.getStyle(u,"display")==="inline");if(!v&&u.offsetParent){return $(u.offsetParent)}while((u=u.parentNode)&&u!==document.body){if(Element.getStyle(u,"position")!=="static"){return k(u)?$(document.body):$(u)}}return $(document.body)}function t(v){v=$(v);var u=0,w=0;if(v.parentNode){do{u+=v.offsetTop||0;w+=v.offsetLeft||0;v=v.offsetParent}while(v)}return new Element.Offset(w,u)}function p(v){v=$(v);var w=v.getLayout();var u=0,y=0;do{u+=v.offsetTop||0;y+=v.offsetLeft||0;v=v.offsetParent;if(v){if(m(v)){break}var x=Element.getStyle(v,"position");if(x!=="static"){break}}}while(v);y-=w.get("margin-top");u-=w.get("margin-left");return new Element.Offset(y,u)}function a(v){var u=0,w=0;do{u+=v.scrollTop||0;w+=v.scrollLeft||0;v=v.parentNode}while(v);return new Element.Offset(w,u)}function s(y){v=$(v);var u=0,x=0,w=document.body;var v=y;do{u+=v.offsetTop||0;x+=v.offsetLeft||0;if(v.offsetParent==w&&Element.getStyle(v,"position")=="absolute"){break}}while(v=v.offsetParent);v=y;do{if(v!=w){u-=v.scrollTop||0;x-=v.scrollLeft||0}}while(v=v.parentNode);return new Element.Offset(x,u)}function q(u){u=$(u);if(Element.getStyle(u,"position")==="absolute"){return u}var y=l(u);var x=u.viewportOffset(),v=y.viewportOffset();var z=x.relativeTo(v);var w=u.getLayout();u.store("prototype_absolutize_original_styles",{left:u.getStyle("left"),top:u.getStyle("top"),width:u.getStyle("width"),height:u.getStyle("height")});u.setStyle({position:"absolute",top:z.top+"px",left:z.left+"px",width:w.get("width")+"px",height:w.get("height")+"px"});return u}function i(v){v=$(v);if(Element.getStyle(v,"position")==="relative"){return v}var u=v.retrieve("prototype_absolutize_original_styles");if(u){v.setStyle(u)}return v}if(Prototype.Browser.IE){l=l.wrap(function(w,v){v=$(v);if(e(v)||c(v)||m(v)||k(v)){return $(document.body)}var u=v.getStyle("position");if(u!=="static"){return w(v)}v.setStyle({position:"relative"});var x=w(v);v.setStyle({position:u});return x});p=p.wrap(function(x,v){v=$(v);if(!v.parentNode){return new Element.Offset(0,0)}var u=v.getStyle("position");if(u!=="static"){return x(v)}var w=v.getOffsetParent();if(w&&w.getStyle("position")==="fixed"){d(w)}v.setStyle({position:"relative"});var y=x(v);v.setStyle({position:u});return y})}else{if(Prototype.Browser.Webkit){t=function(v){v=$(v);var u=0,w=0;do{u+=v.offsetTop||0;w+=v.offsetLeft||0;if(v.offsetParent==document.body){if(Element.getStyle(v,"position")=="absolute"){break}}v=v.offsetParent}while(v);return new Element.Offset(w,u)}}}Element.addMethods({getLayout:r,measure:b,getDimensions:n,getOffsetParent:l,cumulativeOffset:t,positionedOffset:p,cumulativeScrollOffset:a,viewportOffset:s,absolutize:q,relativize:i});function m(u){return u.nodeName.toUpperCase()==="BODY"}function k(u){return u.nodeName.toUpperCase()==="HTML"}function e(u){return u.nodeType===Node.DOCUMENT_NODE}function c(u){return u!==document.body&&!Element.descendantOf(u,document.body)}if("getBoundingClientRect" in document.documentElement){Element.addMethods({viewportOffset:function(u){u=$(u);if(c(u)){return new Element.Offset(0,0)}var v=u.getBoundingClientRect(),w=document.documentElement;return new Element.Offset(v.left-w.clientLeft,v.top-w.clientTop)}})}})();window.$$=function(){var a=$A(arguments).join(", ");return Prototype.Selector.select(a,document)};Prototype.Selector=(function(){function a(){throw new Error('Method "Prototype.Selector.select" must be defined.')}function c(){throw new Error('Method "Prototype.Selector.match" must be defined.')}function d(l,m,h){h=h||0;var g=Prototype.Selector.match,k=l.length,f=0,j;for(j=0;j+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,j=0,d=Object.prototype.toString,o=false,i=true;[0,0].sort(function(){i=false;return 0});var b=function(E,u,B,w){B=B||[];var e=u=u||document;if(u.nodeType!==1&&u.nodeType!==9){return[]}if(!E||typeof E!=="string"){return B}var C=[],D,z,I,H,A,t,s=true,x=p(u),G=E;while((q.exec(""),D=q.exec(G))!==null){G=D[3];C.push(D[1]);if(D[2]){t=D[3];break}}if(C.length>1&&k.exec(E)){if(C.length===2&&f.relative[C[0]]){z=g(C[0]+C[1],u)}else{z=f.relative[C[0]]?[u]:b(C.shift(),u);while(C.length){E=C.shift();if(f.relative[E]){E+=C.shift()}z=g(E,z)}}}else{if(!w&&C.length>1&&u.nodeType===9&&!x&&f.match.ID.test(C[0])&&!f.match.ID.test(C[C.length-1])){var J=b.find(C.shift(),u,x);u=J.expr?b.filter(J.expr,J.set)[0]:J.set[0]}if(u){var J=w?{expr:C.pop(),set:a(w)}:b.find(C.pop(),C.length===1&&(C[0]==="~"||C[0]==="+")&&u.parentNode?u.parentNode:u,x);z=J.expr?b.filter(J.expr,J.set):J.set;if(C.length>0){I=a(z)}else{s=false}while(C.length){var v=C.pop(),y=v;if(!f.relative[v]){v=""}else{y=C.pop()}if(y==null){y=u}f.relative[v](I,y,x)}}else{I=C=[]}}if(!I){I=z}if(!I){throw"Syntax error, unrecognized expression: "+(v||E)}if(d.call(I)==="[object Array]"){if(!s){B.push.apply(B,I)}else{if(u&&u.nodeType===1){for(var F=0;I[F]!=null;F++){if(I[F]&&(I[F]===true||I[F].nodeType===1&&h(u,I[F]))){B.push(z[F])}}}else{for(var F=0;I[F]!=null;F++){if(I[F]&&I[F].nodeType===1){B.push(z[F])}}}}}else{a(I,B)}if(t){b(t,e,B,w);b.uniqueSort(B)}return B};b.uniqueSort=function(s){if(c){o=i;s.sort(c);if(o){for(var e=1;e":function(x,s,y){var v=typeof s==="string";if(v&&!/\W/.test(s)){s=y?s:s.toUpperCase();for(var t=0,e=x.length;t=0)){if(!t){e.push(w)}}else{if(t){s[v]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(s,e){for(var t=0;e[t]===false;t++){}return e[t]&&p(e[t])?s[1]:s[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var s=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(s[1]+(s[2]||1))-0;e[3]=s[3]-0}e[0]=j++;return e},ATTR:function(v,s,t,e,w,x){var u=v[1].replace(/\\/g,"");if(!x&&f.attrMap[u]){v[1]=f.attrMap[u]}if(v[2]==="~="){v[4]=" "+v[4]+" "}return v},PSEUDO:function(v,s,t,e,w){if(v[1]==="not"){if((q.exec(v[3])||"").length>1||/^\w/.test(v[3])){v[3]=b(v[3],null,null,s)}else{var u=b.filter(v[3],s,t,true^w);if(!t){e.push.apply(e,u)}return false}}else{if(f.match.POS.test(v[0])||f.match.CHILD.test(v[0])){return true}}return v},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(t,s,e){return !!b(e[3],t).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(s,e){return e===0},last:function(t,s,e,u){return s===u.length-1},even:function(s,e){return e%2===0},odd:function(s,e){return e%2===1},lt:function(t,s,e){return se[3]-0},nth:function(t,s,e){return e[3]-0==s},eq:function(t,s,e){return e[3]-0==s}},filter:{PSEUDO:function(x,t,u,y){var s=t[1],v=f.filters[s];if(v){return v(x,u,t,y)}else{if(s==="contains"){return(x.textContent||x.innerText||"").indexOf(t[3])>=0}else{if(s==="not"){var w=t[3];for(var u=0,e=w.length;u=0)}}},ID:function(s,e){return s.nodeType===1&&s.getAttribute("id")===e},TAG:function(s,e){return(e==="*"&&s.nodeType===1)||s.nodeName===e},CLASS:function(s,e){return(" "+(s.className||s.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(w,u){var t=u[1],e=f.attrHandle[t]?f.attrHandle[t](w):w[t]!=null?w[t]:w.getAttribute(t),x=e+"",v=u[2],s=u[4];return e==null?v==="!=":v==="="?x===s:v==="*="?x.indexOf(s)>=0:v==="~="?(" "+x+" ").indexOf(s)>=0:!s?x&&e!==false:v==="!="?x!=s:v==="^="?x.indexOf(s)===0:v==="$="?x.substr(x.length-s.length)===s:v==="|="?x===s||x.substr(0,s.length+1)===s+"-":false},POS:function(v,s,t,w){var e=s[2],u=f.setFilters[e];if(u){return u(v,t,s,w)}}}};var k=f.match.POS;for(var m in f.match){f.match[m]=new RegExp(f.match[m].source+/(?![^\[]*\])(?![^\(]*\))/.source);f.leftMatch[m]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[m].source)}var a=function(s,e){s=Array.prototype.slice.call(s,0);if(e){e.push.apply(e,s);return e}return s};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(l){a=function(v,u){var s=u||[];if(d.call(v)==="[object Array]"){Array.prototype.push.apply(s,v)}else{if(typeof v.length==="number"){for(var t=0,e=v.length;t";var e=document.documentElement;e.insertBefore(s,e.firstChild);if(!!document.getElementById(t)){f.find.ID=function(v,w,x){if(typeof w.getElementById!=="undefined"&&!x){var u=w.getElementById(v[1]);return u?u.id===v[1]||typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id").nodeValue===v[1]?[u]:undefined:[]}};f.filter.ID=function(w,u){var v=typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id");return w.nodeType===1&&v&&v.nodeValue===u}}e.removeChild(s);e=s=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){f.find.TAG=function(s,w){var v=w.getElementsByTagName(s[1]);if(s[1]==="*"){var u=[];for(var t=0;v[t];t++){if(v[t].nodeType===1){u.push(v[t])}}v=u}return v}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){f.attrHandle.href=function(s){return s.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var e=b,t=document.createElement("div");t.innerHTML="

";if(t.querySelectorAll&&t.querySelectorAll(".TEST").length===0){return}b=function(x,w,u,v){w=w||document;if(!v&&w.nodeType===9&&!p(w)){try{return a(w.querySelectorAll(x),u)}catch(y){}}return e(x,w,u,v)};for(var s in e){b[s]=e[s]}t=null})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var e=document.createElement("div");e.innerHTML="
";if(e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}f.order.splice(1,0,"CLASS");f.find.CLASS=function(s,t,u){if(typeof t.getElementsByClassName!=="undefined"&&!u){return t.getElementsByClassName(s[1])}};e=null})()}function n(s,x,w,B,y,A){var z=s=="previousSibling"&&!A;for(var u=0,t=B.length;u0){v=e;break}}}e=e[s]}B[u]=v}}}var h=document.compareDocumentPosition?function(s,e){return s.compareDocumentPosition(e)&16}:function(s,e){return s!==e&&(s.contains?s.contains(e):true)};var p=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&e.ownerDocument.documentElement.nodeName!=="HTML"};var g=function(e,y){var u=[],v="",w,t=y.nodeType?[y]:y;while((w=f.match.PSEUDO.exec(e))){v+=w[0];e=e.replace(f.match.PSEUDO,"")}e=f.relative[e]?e+"*":e;for(var x=0,s=t.length;x=0}).sortBy(function(d){return d.tabIndex}).first();return a?a:c.find(function(d){return/^(?:input|select|textarea)$/i.test(d.tagName)})},focusFirstElement:function(b){b=$(b);var a=b.findFirstElement();if(a){a.activate()}return b},request:function(b,a){b=$(b),a=Object.clone(a||{});var d=a.parameters,c=b.readAttribute("action")||"";if(c.blank()){c=window.location.href}a.parameters=b.serialize(true);if(d){if(Object.isString(d)){d=d.toQueryParams()}Object.extend(a.parameters,d)}if(b.hasAttribute("method")&&!a.method){a.method=b.method}return new Ajax.Request(c,a)}};Form.Element={focus:function(a){$(a).focus();return a},select:function(a){$(a).select();return a}};Form.Element.Methods={serialize:function(a){a=$(a);if(!a.disabled&&a.name){var b=a.getValue();if(b!=undefined){var c={};c[a.name]=b;return Object.toQueryString(c)}}return""},getValue:function(a){a=$(a);var b=a.tagName.toLowerCase();return Form.Element.Serializers[b](a)},setValue:function(a,b){a=$(a);var c=a.tagName.toLowerCase();Form.Element.Serializers[c](a,b);return a},clear:function(a){$(a).value="";return a},present:function(a){return $(a).value!=""},activate:function(a){a=$(a);try{a.focus();if(a.select&&(a.tagName.toLowerCase()!="input"||!(/^(?:button|reset|submit)$/i.test(a.type)))){a.select()}}catch(b){}return a},disable:function(a){a=$(a);a.disabled=true;return a},enable:function(a){a=$(a);a.disabled=false;return a}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers=(function(){function b(h,i){switch(h.type.toLowerCase()){case"checkbox":case"radio":return f(h,i);default:return e(h,i)}}function f(h,i){if(Object.isUndefined(i)){return h.checked?h.value:null}else{h.checked=!!i}}function e(h,i){if(Object.isUndefined(i)){return h.value}else{h.value=i}}function a(k,n){if(Object.isUndefined(n)){return(k.type==="select-one"?c:d)(k)}var j,l,o=!Object.isArray(n);for(var h=0,m=k.length;h=0?g(i.options[h]):null}function d(l){var h,m=l.length;if(!m){return null}for(var k=0,h=[];k=this.offset[1]&&c=this.offset[0]&&a=this.offset[1]&&this.ycomp=this.offset[0]&&this.xcomp0})._each(a)},set:function(a){this.element.className=a},add:function(a){if(this.include(a)){return}this.set($A(this).concat(a).join(" "))},remove:function(a){if(!this.include(a)){return}this.set($A(this).without(a).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);(function(){window.Selector=Class.create({initialize:function(a){this.expression=a.strip()},findElements:function(a){return Prototype.Selector.select(this.expression,a)},match:function(a){return Prototype.Selector.match(a,this.expression)},toString:function(){return this.expression},inspect:function(){return"#"}});Object.extend(Selector,{matchElements:function(f,g){var a=Prototype.Selector.match,d=[];for(var c=0,e=f.length;c=0){c.push(f.slice(e,a));e=a+2;var d=arguments[b++];if(d&&d.toString){d=d.toString()}c.push(d)}if(e1)?c.join(""):c[0]},loc:function(){var a=String[String.currentLanguage()];var b=a[this];if(!b){b=String.English[this]||this}return b.fmt.apply(b,arguments)}};for(var key in SC.String){String.prototype[key]=SC.String[key]}Object.extend(String,{browserLanguage:((navigator.language||navigator.browserLanguage).split("-",1)[0]),useAutodetectedLanguage:NO,preferredLanguage:null,currentLanguage:function(){var a=(this.useAutodetectedLanguage)?(this.browserLanguage||this.preferredLanguage||"en"):(this.preferredLanguage||this.browserLanguage||"en");if(!this[a]){a=this.normalizedLanguage(a)}return a},normalizedLanguage:function(a){switch(a){case"fr":a="French";break;case"de":a="German";break;case"ja":case"jp":a="Japanese";break;case"en":a="English";break;case"es":a="Spanish";break;default:a="English";break}return a},addStringsFor:function(b,a){b=String.normalizedLanguage(b);if(!String[b]){String[b]={}}Object.extend(String[b],a||{});return this}});String.English=String.English||{};String.French=String.French||{};String.German=String.German||{};String.Japanese=String.Japanese||{};String.Spanish=String.Spanish||{}; \ No newline at end of file diff --git a/12-functions/assets/player/waiting_bezel.png b/12-functions/assets/player/waiting_bezel.png new file mode 100644 index 0000000..07f2da1 Binary files /dev/null and b/12-functions/assets/player/waiting_bezel.png differ diff --git a/12-functions/assets/thumbnail.jpeg b/12-functions/assets/thumbnail.jpeg new file mode 100644 index 0000000..2594e22 Binary files /dev/null and b/12-functions/assets/thumbnail.jpeg differ diff --git a/12-functions/index.html b/12-functions/index.html new file mode 100644 index 0000000..27b3e4f --- /dev/null +++ b/12-functions/index.html @@ -0,0 +1,41 @@ + + + + + + + + \ No newline at end of file diff --git a/readme.md b/readme.md index 443b416..e88a8eb 100644 --- a/readme.md +++ b/readme.md @@ -13,4 +13,5 @@ below: 1. [CSS Position and Transition](https://fewd-sg.github.io/lectures/8-position-transition/) 1. [Intro to Programming](https://fewd-sg.github.io/lectures/9-intro-to-programming/) 1. [Intro to JavaScript](https://fewd-sg.github.io/lectures/10-intro-to-javascript/) -1. [More Javascript](https://fewd-sg.github.io/lectures/11-more-javascript/) +1. [More JavaScript](https://fewd-sg.github.io/lectures/11-more-javascript/) +1. [Functions](https://fewd-sg.github.io/lectures/12-functions/)