-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03-03-2015.txt
259 lines (158 loc) · 5 KB
/
03-03-2015.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
XHTML O QUE É
E A CAMADA CLIENTE O QUE VAI PRO CLIENTE, HTML CSS JAVASRIPT
BROWSE CONSEGUE RENDERIZAR
1- HTML PRIMEIRA CAMADA
2- CSS SEGUNDA CAMADA
3- JAVASCRIPT TERCEIRA CAMADA
(COMPORTAMENTO DA APAREÇA OU SUMA OU FAÇA ALGUMA OPERAÇÃO)
-------------------------------------------------------------
html - declarativa apenas informa o que acontece por baixo dos panos
sql- declarativa o conjunto de dados e vc não sabe o que sucede para a busca dessas informações
XML Conversa com a linguagem (json) respeita estrutura de arvore
tags abertas e fechadas e respeita estrutura de árvore
referencia: www.w3schools.com
-------------------------------------------------------------------
Tekton - static posso localhost:8080/stact/img/ajax.gif
adiciona home.html no statc
html5 possui no raiz
por dentro do servidor, para não ter problema
meta linguagem dicionario para explicar coisas escritas
meta dado dados que falam de dados
----------------------------------------------------------------
HTML BLOCO DIV
CTRL SHIFTPARA DUPLICAR A DIV
FORMAT CODE
RENDERIZANDO COLOCA UMA DIV E INSPECIONAR O CODIGO VC VERIFICA COM O GOOGLE CHROME A INSPEÇÃO DO CODIGI
TEXTO PARÁGRAFO tag p define um paragrafo com espaço a cima e abaixo<p></p>
proxima linha tag <br> </br>
utiliza para agrupar um texto estilo diferente a elementos tag span
Âncora (link)
Tag a ( ancora) serve para levar usuario a outra pagina ou secao de documento
atributo href o destino
targe indica como abrir a nova pagina
_self (padrão)
_
<ol> ordenar uma lista
<LI> <A HREF=" LINK"></LI>
<ul> sem marcação ou * ou °
abre outra pagina e n fecha a principal target
-------------------------------------------------------------
<div>
<div id="cap1">
<h1> capitulo</h1>
</div>
<li><a href"#cap1"> Cap 3</a></li>
---------------------------------------------------------------
tag img tributosrc alguma vezes usado conjnto com <a> para criar botões
tanto meu site quanto site alheios, detalhe em protocolo.
<img src ="/static/imh/ajax.gifs"/> ou link do google " entre aspas" tire o http://www.google.com.br link so deixar //www.google.com.br
---------------------------------------------------------
Formulários
tag form utilizado inserir inputs action e atributo method
Inputs (text submit select radio checkbox)
<form action="" method="get">
NAME:<input type="text" name ="name" placeholder="digite aqui seu nome"/> (placeholder informa ao usuario o que fazer)
<input type ="submit" value="salvar"/>
<button type" submit">Salvar</button>
</BR>
Sexo: Masculino < input type="radio" name="sexo" value ="M"/>
Sexo: FEMININO < input type="radio" name="sexo" value ="f"/>
futebol< input type="checkbox" name="prefe" value ="fut"/>
Desenvolvimento< input type="checkbox" name="prefe! value ="desenvolvimento"/>
COMBOBO
<select> name = "estado">
<option value = "sp"> SP </option>
<option value = "rj"> RJ</option>
<option value= "am"> selected ="selected> Amazoni </option> deixa selecionado como primeiro item
</select>
------------------------------------------------------------------
Dados em forma de tabela
tag table
thead- cabeçalho
tbody- corpo da tabel
table row (linha) -tr
table heard th
table data (célula) -td
<table>
<thead>
<tr>
<th>nome</th>
</tr
</thead>
------------------------------------------------------------------
04/03/2015
CSS E TWITTER BOOTSTRAP
o que é CSS folha de estilo em cascat
usada na view para alterar propriedade visuai
Posicionamento
tamanho
cores
....
---------------------------------------
onde colocar o código
atributo style do elemento html
tag style dento da tag head
arquivo separado .css referenciado link ddento da tag head (mais utilizado)
------------------------------
seletor escolher onde aplicar o estilo
pela tag
pelo id
pelo atributo class
por pseudo classe
combinação de todas acima
------------------------------------------
antes da tag
pulei <span style="color: red> </span>
cabeçalho
<style>
span{color: blue;}
</style>
dentro da pasta no frame css nome home
</style>
span{
color;
}
</style>
link type"text/css" htef="/static/css/home.css"rel ="stylesheet"/>
link css
pulei <span id-"span-azul"> red </span>
span{
color: grem;
}
.amarelo{
color : #
background-color: bbc6
}
a.mare: houver`{
color: red;
font-style italic
}
-------------------------------
layout "caixa" CONTINUAÇÃO 04/03/2015
tabela com dados
div agrupa componentes e nao tabela
no tecton tem o bootstrap configurado
o que twiter bootstrap
layoutit baseado em bootstrap online
Site layoutit.com
star now with bootstrap 3
--------------------------------------
templates
o que é template
renderização
herança define o pai e vai herdandos
macro
parametros
comando if
comando for
trabalho
pacote routes (seria quase igual php)
__future__ ou __name
pycharm utf
@login_not_requiresd
@not_csrf
def index():
pass
request
get /usuario envia solitcitação para routes index que envia o jinja2 us_form {%extendes %}
gera uma string com conteudo html e devolve para usuario e response