Phase 7 is mostly authored assets. This commit is the asset half; the
template half is a Builder child issue because this phase must not write
application code.
DoD items satisfied or advanced:
- [x] Eight diagrams present, both themes, readable at 1x and on mobile
8 SVGs, one byte-identical <style> block across all 8 (one visual
language by construction). Light and dark resolve from a single file
via prefers-color-scheme, verified per file in Chrome: 8/8 return two
distinct palettes. Geometry verified with getBBox(), not estimated:
0 findings after fixing 74 (text overflow, partial overlap, empty
text, out-of-viewBox). Mobile type at the 900px minimum is 14.1/12.2px.
- [x] Six code exhibits with a two-sentence rationale each
212 verbatim lines across five eras, copied with cp/sed from the
read-only archive. Every rationale is exactly two sentences about why
the code is good; every exhibit also carries an honest_note, and where
the code is not good the note says so (the 3,400-line procedural PHP
script is presented for its operational judgement, not its structure).
- [~] Every image optimised; total page weight budgeted and recorded
BUDGET.md records measured raw and gzip weights for all 15 served
files: 63,802 B raw / 13,220 B gzipped. Zero rasters by design. Page
weight of a real page is not measurable until Phase 2 templates and
Phase 3 serving exist, and is recorded as open rather than asserted.
- [x] Archive never linked or exposed
No mount paths or volume names under content/. Provenance recorded as
"private archive, path withheld".
- [ ] Client wall reads as deliberate -> needs markup/CSS (Builder)
- [ ] Lighthouse held at >= 95/95 -> needs a served page (Phase 3)
Also: the client wall is authored as data (45 entries, 44 distinct names) with
the 45-vs-46 discrepancy and the Diajio -> Diageo correction recorded
rather than papered over. No commercial marks are enabled: that is a
permission decision for Sam, so availability is recorded and permission is not
implied.
37 lines
958 B
ActionScript
Executable File
37 lines
958 B
ActionScript
Executable File
package thebeer {
|
|
import utils.Bg;
|
|
|
|
import com.greensock.TweenMax;
|
|
|
|
import flash.display.MovieClip;
|
|
import flash.events.Event;
|
|
|
|
/**
|
|
* @author samrolfe
|
|
*/
|
|
public class Siren extends MovieClip {
|
|
private var targ : Bg;
|
|
private var delays : Number;
|
|
private var wide: Number;
|
|
private var high: Number;
|
|
|
|
public function Siren(col:Number,t:Bg,d:Number) {
|
|
delays=d;
|
|
targ=t;
|
|
x=targ.x;
|
|
y=targ.y;
|
|
wide=this.width;
|
|
high=this.high;
|
|
TweenMax.to(this,0,{autoAlpha:0,colorMatrixFilter:{colorize:col}});
|
|
}
|
|
|
|
private function setPos(e:Event) : void {
|
|
x=parent[targ].x;
|
|
y=parent[targ].y;
|
|
}
|
|
|
|
public function flash() : void {
|
|
TweenMax.to(this,0,{autoAlpha:1,width:wide,height:high});
|
|
TweenMax.to(this,.1,{width:0,height:0,repeat:5,repeatDelay:delays,yoyo:true,onComplete:finish});
|
|
}
|
|
public function finish() : void {
|
|
TweenMax.killTweensOf(this);
|
|
TweenMax.to(this,2,{autoAlpha:0,width:0,height:0});
|
|
}
|
|
}
|
|
}
|