calculation design

http://share.framerjs.com/5a719k8arrx8/

 

 

# Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info

Framer.Info =
	title: ""
	author: "Jong Hyeok Im"
	twitter: ""
	description: ""


#Background setting

background = new BackgroundLayer
	backgroundColor: "#fff"

result= ""
# 변수는 따로 빼줘서 사용됨.	

results = new Layer
	width: Screen.width
	height: Screen.height/3
	backgroundColor: "#fff"
	shadowY: 10
	shadowBlur: 40
	shadowColor: "rgba(0,0,0,0.4)"
	html: result
	#Matrial Design의 shadow를 이용하여 입체감입히기

screen = new Layer
	backgroundColor: "null"
	#  투명하게 사용하는데 null을 이용함
	superLayer: results
	width: Screen.width*0.9
	y: results.height/2
	opacity: 1

value = new Layer
	backgroundColor: "null"
	y: results.height/4*3
	superLayer: results
	width: Screen.width*0.9
	originX: 1
	# 시작점
	opacity: 0.8
	scale: 0.6

value.style =
	"text-align": "right"
	"font-size": "180px"
	"Color": "#757575"
screen.style =
	"text-align": "right"
	"font-size": "180px"
	"color": "#757575"
screen.states.add
	enter:
		y: -100
		opacity:0
value.states.add
	enter:
		y: results.height/2
		scale:1
		opacity:1

numpad= new Layer
	width: Screen.width
	height: Screen.height - results.height
	backgroundColor: "#3a3a3a"
	y: results.height

actionsBack= new Layer
	backgroundColor: "#636363"
	y:0
	x: Screen.width/4*3
	width: Screen.width/4
	height: Screen.height-results.height
	superLayer: numpad
	clip: true
	# clip이란?

results.bringToFront()
# bringToFront 함수란?
# Parent안에 레이어의 순서를 가장앞에 오게 만드는 함수
numberButtons=[["7","8","9"],["4","5","6"],["1","2","3"], [".","0","="]]
actionButtons=["C","+","-","/","*"]
buttons=[]

for y in [0..3]
	for x in [0..2]
		button= new Layer
		# 레이어 생성 시, 띄어쓰기가 맞는가?
			name: numberButtons[y][x]
			width: Screen.width/4
			height: numpad.height/4
			x: Screen.width/4*x
			y: numpad.height/4*y
			superLayer: numpad
			backgroundColor: "null"
		button.value = numberButtons[y][x]
		Utils.labelLayer(button, numberButtons[y][x])
		# 위 두줄 해석 필요함
		# Document에는 빠르게 레이블 가운데 위치하는 방식이라고 함
		button.style.fontSize = "80px"
		buttons.push(button)

for y in [0..4]
	button= new Layer	
		name: actionButtons[y]
		width: Screen.width/4
		height: numpad.height/5
		x: 0
		y: y*numpad.height/5
		backgroundColor: "null"
		superLayer: actionsBack
	Utils.labelLayer(button,actionButtons[y])
	button.style.fontSize = "80px"
	buttons.push(button)
actionsBack.bringToFront()

for button in buttons
	circle = new Layer
		borderRadius: button.width
		width: button.width*1.3
		height: button.width*1.3
		superLayer: button
		backgroundColor: "#fff"
		opacity: 0
	circle2= circle.copy()
	circle2.superLayer = button
	circle.center()
	circle2.center()
	circle2.scale = 0.1
	circle2.opacity = 0
	
	button.onTouchEnd ->
# 		print @.html
#		Data가 잘들어오는지 점검용
# 		print @.children
		@.children[0].animateStop()
		@.children[1].animateStop()
		@.children[0].animate
			properties:
				opacity: 0
			time: 0.3
		@.children[1].opacity= 0
		@.children[1].scale= 0.1
	button.onTouchStart ->
		@.children[0].animate
			properties:
				opacity: 0.05
			time: 0.3
		@.children[1].animate
			properties:
				opacity: 0.05
				scale: 1
			time: 0.4
		if @.name=="="
			result=eval (eval screen.html).toFixed(5)
			value.states.switch("enter", time: 0.3, curve: "ease")
			screen.states.switch("enter", time: 0.3, curve: "ease")
			Utils.delay 0.4, ->
				value.states.switchInstant("default")
				screen.states.switchInstant("default")
				screen.html = result
			# 구문 해석이 필요함
		else if @.name =="C"
			result=""
		else if @.name =="/"
			result +="/"
		else if @.name =="*"
			result +="*"
		else if @.name =="."
			if parseInt(eval screen.html) ==(eval screen.html)
				result +='.'
			else
		else
			if result==0
				result= @.name
			else
				result += @.name 
		screen.html= result
# 		if typeof (eval screen.html) isnt 'underfined'
# # 			val=eval screen.html
# # 			if parseInt(val) != val
# # 				val =val.toFixed(5)
# 			value.html = eval (eval screen.html).toFixed(5)
# 		#typeof이건도 무엇이오
# 		else
# 			value.html=""
			#toFixed 자리수 표기인듯
	

 

Veteran defensive tackles Darnell Dockett and Dan Williams are gone, and the Cardinals had high hopes for replacement Corey Peters, but he is out with a season ending Achilles’ tendon injury. Human babies have a very long infancy and childhood precisely because we are that intelligent and have that complex of a social structure that we need that time at our mother breast to be able to be properly socialized.. Applying is akin to playing the lottery, with winners chosen by random selection. Life seems freeze whenever there are football matches on the TV, and you could see Cheap mlb Jerseys on the road that there are no one who going on the road. S3 and Supplementary Table S1).The PNFL model consists of the following ordinary differential equations:where Tm=tTA mRNA, Tp=tTA protein, Mi=inactive form of the miRNA, Ma=active form of the miRNA. Not Cheap Football Jerseys unlike spinning, fell running can be as hard as you want to make it. Jimmy Graham of the New Orleans Saints is the second most selected and talked about tight end in this year’s fantasy circle. But this is also allowing you not to be like bent way over, which results in neck cramps, shoulder cramps, and just generally results in bad posture. Competition from other broadcasting firms, particularly from companies based in areas where NEP does not have a presence, could possibly jeopardize such a working relationship and NEP’s profits.. To compare the Fisher scoring algorithm with the mixture model based ML method for the variance matrix of the estimated parameters, we introduced the variance matrix under the EM algorithm here. Don’t fake oakleys be so nice, WayneI don’t think Wayne Rooney’s tackle on Stewart Downing was the kind that hurts an opposing player. The panicky promoters begged a local banker to put up the money, based on the fact that Richie Rich Roberts had a $1,000,000 trust fund he could use as collateral. ”This has been a learning process for me. The popcorn prepared fresh from your own popcorn machine is all you need to complete your setup. You go play to win. It’s tightening up your butt and then you want to do the other side. I was hockey jerseys a “First Lady of Football” from ’97 ’01 and then oakley outlet became cheap oakleys the Marketing Director (until 2011, 10 years). And the NCAA, the reason why they’re holding onto this so hard is because they have a conflict of interest. The Packers rushing attack is so lame, Rodgers actually has the only three rushing TDs for the team all season. Combined light fake oakleys reflectance (OCT B scans) and IOS distribution curves revealed similar signal densities across the photoreceptor OSs and slight IOSs at the ISe and RPE Bruch’s membrane complex regions.

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.