JavaScript向けに、複数行文字列を文字列配列に変換するツールを作りました。
変換サンプル
#gbx3, #gbx4 {
background-color: #2D2D2D;
background-image: none;
background-position: 0 -138px;
background-repeat: repeat-x;
border-bottom: 1px solid #000000;
font-size: 24px;
height: 29px;
opacity: 1;
position: absolute;
top: 0;
width: 100%;
z-index: 990;
}
.gbtb .gbts {
background: url("//ssl.gstatic.com/gb/images/b_8d5afc09.png") repeat scroll -27px -22px transparent;
border: 0 none;
font-size: 0;
padding: 29px 0 0;
width: 1px;
}
.gbtb .gbts {
background: url('//ssl.gstatic.com/gb/images/b_8d5afc09.png') repeat scroll -27px -22px transparent;
border: 0 none;
font-size: 0;
padding: 29px 0 0;
width: 1px;
}
['#gbx3, #gbx4 {',
'background-color: #2D2D2D;',
'background-image: none;',
'background-position: 0 -138px;',
'background-repeat: repeat-x;',
'border-bottom: 1px solid #000000;',
'font-size: 24px;',
'height: 29px;',
'opacity: 1;',
'position: absolute;',
'top: 0;',
'width: 100%;',
'z-index: 990;',
'}',
'.gbtb .gbts {',
'background: url("//ssl.gstatic.com/gb/images/b_8d5afc09.png") repeat scroll -27px -22px transparent;',
'border: 0 none;',
'font-size: 0;',
'padding: 29px 0 0;',
'width: 1px;',
'}',
'.gbtb .gbts {',
'background: url(\'//ssl.gstatic.com/gb/images/b_8d5afc09.png\') repeat scroll -27px -22px transparent;',
'border: 0 none;',
'font-size: 0;',
'padding: 29px 0 0;',
'width: 1px;',
'}'];
変換ツール
0 件のコメント:
コメントを投稿