NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<head>
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
<style>
body {
background-color: rgba(0,0,0,0);
font-family: 'Source Code Pro', monospace;
margin: 18px;
}
.myform{
background-color: rgba(0,0,0,0);
width: 760;
border-radius: 0px;
/*border: 1px dotted #FFFFFF;*/
text-align: center;
}
.dropbtnx, .dropbtnx2 {
margin: 0px;
background-color: rgba(0, 0, 0, 0);
vertical-align: middle;
color: white;
font-size: 18px;
border: none;
cursor: pointer;
border-radius: 5px;
border: 2px solid #FFFFFF;
width: 360px;
height: 49px;
padding: 0px;
}
.dropbtnx:hover,.dropbtnx2:hover{
background-color: #E5B5A8;
}
.dropdownx ,.dropdownx2{
position: relative;
display: inline-block;
}
.dropdownx-content ,.dropdownx-content2{
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 358px;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
border-radius: 5px;
border: 2px solid #FFFFFF;
margin-top: 2px;
}
.dropdownx-content a ,.dropdownx-content2 a{
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}

.dropdownx a:hover,.dropdownx2 a:hover {
background-color: #f1f1f1
}

.show,.show2 {
display: block;
}
.title {
margin-top: 12px;
display: inline-block;
/*background-color: red;*/
vertical-align:middle;
width: 280px;
text-align: center;
}
.verbar {
display: inline-block;
width: 2px;
height: 50px;
background-color: white;
float: right;
}
.arrdown {
display: inline-block;
width: 50px;
height: 40px;
float: right;
background-image: url("arrow-down.png");
background-repeat: no-repeat;
background-position: 50% 80%;
background-origin: content-box;
}
textarea{
margin-top: 18px;
font-family: inherit;
color: #E0BEBD;
background-color: white;
width: 740;
height: 171;
font-size: 16px;
border-radius: 5px;
border: 2px solid #FFFFFF;
padding: 10px;
resize: none;
}
textarea:focus,input:focus,.myButton:focus{
outline: none;
}
input{
margin-top: 18px;
font-family: inherit;
color: white;
background-color: #E0BEBD;
width: 500;
height: 49;
font-size: 16px;
border-radius: 5px;
border: 2px solid #FFFFFF;
padding-left: 8px;
}
.myButton{
margin-top: 18px;
font-family: inherit;
color: #E0BEBD;
background-color: white;
font-size: 18px;
border-radius: 5px;
border: 2px solid #FFFFFF;
width: 233;
height: 49;
cursor: pointer;
}
input::-webkit-input-placeholder {
color: white;
}
</style>
</head>
<body>
<div class="myform">
<div class="dropdownx">
<div onclick="field1();" class="dropbtnx">
<div id="f1" class="title">X</div>
<div class="arrdown"></div>
<div class="verbar"></div>
</div>
<div id="myDropdown" class="dropdownx-content">
</div>
</div>
<div class="dropdownx2">
<div onclick="field2();" class="dropbtnx2" id="btnF2">
<div id="f2" class="title">X</div>
<div class="arrdown"></div>
<div class="verbar"></div>
</div>
<div id="myDropdown2" class="dropdownx-content2">
</div>
</div>
<div>
<textarea placeholder="Description."></textarea>
</div>
<div>
<input placeholder="E-Mail." type="text">
<button class="myButton">Send</button>
</div>
</div>
<script>
var data = [
{
"id":"app",
"name":"Application",
"value":[
"iOS",
"Android",
"iOS & Android"
]
},
{
"id":"bra",
"name":"Branding Package",
"value":[
"Name card",
"Letter",
"Folder"
]
},
{
"id":"bro",
"name":"Brochure",
"value":[
"A4/A3 ( 2 ตอน 4 หน้า )",
"A4/A3 ( 3 ตอน 6 หน้า )"
]
},
{
"id":"exp",
"name":"Exhibition Package",
"value":null
},
{
"id":"log",
"name":"Logo",
"value":[
"Logo design",
"Logo Presentation"
]
},
{
"id":"mot",
"name":"Motion Graphic",
"value":null
},
{
"id":"per",
"name":"Perspective Booth Design",
"value":[
"3x3 meter"
]
},
{
"id":"pre",
"name":"Presentation",
"value":[
"Slideshow",
"Animation",
"Video Presentation"
]
},
{
"id":"sto",
"name":"Stop Motion",
"value":null
},
{
"id":"vid",
"name":"Video Editing",
"value":null
},
{
"id":"web",
"name":"Web Design Responsive",
"value":null
},
{
"id":"oth",
"name":"Others",
"value":null
}
];
var arrValueCount = data[0]["value"].length;
document.getElementById('f1').innerHTML = data[0]["name"];
if(data[0]["value"]==null){
document.getElementById('f2').innerHTML = "-";
}else{
document.getElementById('f2').innerHTML = data[0]["value"][0];
}
var div_start = document.getElementById('myDropdown2');
for(var i = 0;i<data[0]["value"].length;i++){
var a_name = data[0]["value"][i];

div_start.innerHTML = div_start.innerHTML + '<a onclick="f2DidClick(this);" id="">'+a_name+'</a>';
}



for(var i = 0;i<data.length;i++){
var div = document.getElementById('myDropdown');
var a_id = data[i]["id"];
var a_name = data[i]["name"];
div.innerHTML = div.innerHTML + '<a onclick="f1DidClick(this);" id="'+a_id+'">'+a_name+'</a>';
}


function f1DidClick(product){
var div = document.getElementById('myDropdown2');
div.innerHTML ="";

for(var i = 0;i<data.length;i++){

if(data[i]["id"]==product.id){
if (data[i]["value"]==null){
arrValueCount = 0;
}else{
arrValueCount = data[i]["value"].length;
}
document.getElementById('f1').innerHTML =data[i]["name"];
if(data[i]["value"]==null){
document.getElementById('f2').innerHTML = "-";
//btnF2
}else{
document.getElementById('f2').innerHTML =data[i]["value"][0];
for(var j = 0;j<data[i]["value"].length;j++){
var a_name = data[i]["value"][j];

div.innerHTML = div.innerHTML + '<a onclick="f2DidClick(this);" id="">'+a_name+'</a>';
}
}
}
}
}

function f2DidClick(product){

var div = document.getElementById('f2');
div.innerHTML = product.innerHTML;

}

function field1() {


document.getElementById("myDropdown").classList.toggle("show");
console.log("log1");
var dropdowns = document.getElementsByClassName("dropdown-content2");
for ( var i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show2')) {
openDropdown.classList.remove('show2');
}
}

}

function field2() {
if(arrValueCount==0){
return;
}
document.getElementById("myDropdown2").classList.toggle("show2");
console.log("log2");
var dropdowns = document.getElementsByClassName("dropdown-content");
for ( var i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}

window.onclick = function(event) {
var bool1 = event.target.matches('.dropbtnx')?true:false;
var bool2 = event.target.matches('.title')?true:false;
var bool3 = event.target.matches('.arrdown')?true:false;
var bool4 = event.target.matches('.verbar')?true:false;
if (!bool1 && !bool2 && !bool3 && !bool4) {
var dropdowns = document.getElementsByClassName("dropdownx-content");
for ( var i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
var bool5 = event.target.matches('.dropbtnx2')?true:false;
if (!bool5 && !bool2 && !bool3 && !bool4) {
var dropdowns = document.getElementsByClassName("dropdownx-content2");
for ( var i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show2')) {
openDropdown.classList.remove('show2');
}
}
}
}



</script>
</body>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.