hello.blade.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879
  1. <!DOCTYPE html>
  2. <html lang="ru">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Конструктор визиток</title>
  6. <link rel="stylesheet" type="text/css" href="main.css">
  7. <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap" rel="stylesheet">
  8. <style>
  9. body {
  10. margin: 0;
  11. background-image: url(images/bg.png);
  12. font-family: Roboto, sans-serif;
  13. }
  14. .wrapper {
  15. height: 100%;
  16. width: 100%;
  17. display: flex;
  18. flex-direction: row;
  19. justify-content: center;
  20. align-items: center;
  21. }
  22. .construct {
  23. padding-left: 30px;
  24. padding-bottom: 60px;
  25. height: 100;
  26. width: 600px;
  27. background-color: #ffffff;
  28. box-shadow: 0px 0px 6px #00000029;
  29. }
  30. .card {
  31. padding-top: 22px;
  32. margin-left: 65px;
  33. height: 250px;
  34. width: 445px;
  35. background-color: #ffffff;
  36. box-shadow: 0px 6px 12px #00000029;
  37. border-radius: 6px;
  38. border: #707070A8 solid 1px;
  39. }
  40. .card-wrap {
  41. display: flex;
  42. flex-direction: row;
  43. flex-wrap: wrap;
  44. justify-content: center;
  45. }
  46. .org {
  47. flex-basis: 250px;
  48. text-align: center;
  49. font-size: 10px;
  50. color: #202020;
  51. }
  52. .name {
  53. flex-basis: 445px;
  54. margin-top: 32px;
  55. font-weight: bold;
  56. }
  57. .size14 {
  58. font-size: 14px;
  59. }
  60. .size16 {
  61. font-size: 16px;
  62. }
  63. .size18 {
  64. font-size: 18px;
  65. }
  66. .size24 {
  67. font-size: 24px;
  68. }
  69. .size26 {
  70. font-size: 26px;
  71. }
  72. .size28 {
  73. font-size: 28px;
  74. }
  75. .align-left {
  76. text-align: left;
  77. }
  78. .align-center {
  79. text-align: center;
  80. }
  81. .align-right {
  82. text-align: right;
  83. }
  84. .black {
  85. color: black;
  86. }
  87. .blue {
  88. color: #3F88E8;
  89. }
  90. .red {
  91. color: #E83F56;
  92. }
  93. .green {
  94. color: #097A14;
  95. }
  96. .orange {
  97. color: #DCA40A;
  98. }
  99. .purple {
  100. color: #DC0AD5;
  101. }
  102. .position {
  103. flex-basis: 445px;
  104. margin-top: 8px;
  105. }
  106. .grey1 {
  107. color: #474747;
  108. }
  109. .grey2 {
  110. color: #202020;
  111. }
  112. .grey3 {
  113. color: #636363;
  114. }
  115. .grey4 {
  116. color: #9E9E9E;
  117. }
  118. .grey5 {
  119. color: #BBBBBB;
  120. }
  121. .grey6 {
  122. color: #E3E3E3;
  123. }
  124. .null {
  125. flex-basis: 222px;
  126. }
  127. .info {
  128. margin-top: 20px;
  129. flex-basis: 222px;
  130. font-size: 12px;
  131. line-height: 2;
  132. }
  133. .header {
  134. margin-top: 30px;
  135. color: #707070;
  136. font-size: 20px;
  137. font-weight: bold;
  138. }
  139. .l {
  140. display: inline-block;
  141. color: #707070;
  142. font-size: 14px;
  143. text-align: left;
  144. margin-top: 15px;
  145. }
  146. .l2 {
  147. display: inline-block;
  148. color: #707070;
  149. font-size: 12px;
  150. text-align: left;
  151. margin-top: 15px;
  152. }
  153. input[type="text"],
  154. [type="email"],
  155. [type="tel"] {
  156. border-radius: 2px;
  157. border: #AAAAAABF solid 1px;
  158. padding: 7px 10px;
  159. width: 255px;
  160. margin: 10px 0px 0px 0px;
  161. }
  162. .button {
  163. margin-top: 18px;
  164. display: block;
  165. padding: 7px 25px 8px;
  166. color: #fff;
  167. font-family: roboto;
  168. font-weight: 400;
  169. font-size: 14px;
  170. text-decoration: none;
  171. background-color: #3F88E8;
  172. border-radius: 25px;
  173. border: 2px solid #3F88E8;
  174. cursor: pointer;
  175. transition: .2s all ease-in-out;
  176. }
  177. .button:hover {
  178. background-color: transparent;
  179. color: #3F88E8;
  180. border-color: #3F88E8;
  181. outline: none;
  182. }
  183. .button:focus {
  184. outline: none;
  185. }
  186. .button:active {
  187. background-color: #3F88E8;
  188. color: white;
  189. border-color: #3F88E8;
  190. outline: none;
  191. }
  192. .c-black:before {
  193. content: "•";
  194. color: black;
  195. margin-left: 6px;
  196. font-size: 30px;
  197. font-weight: bold;
  198. line-height: 28px;
  199. display: inline-block;
  200. margin-top: 10px;
  201. margin-bottom: 3px;
  202. border-radius: 100%;
  203. width: 24px;
  204. height: 24px;
  205. background-color: black;
  206. }
  207. .c-blue:before {
  208. content: "•";
  209. color: #3F88E8;
  210. margin-left: 6px;
  211. font-size: 30px;
  212. font-weight: bold;
  213. line-height: 28px;
  214. display: inline-block;
  215. margin-top: 10px;
  216. margin-bottom: 3px;
  217. border-radius: 100%;
  218. width: 24px;
  219. height: 24px;
  220. background-color: #3F88E8;
  221. }
  222. .c-red:before {
  223. content: "•";
  224. color: #E83F56;
  225. margin-left: 6px;
  226. font-size: 30px;
  227. font-weight: bold;
  228. line-height: 28px;
  229. display: inline-block;
  230. margin-top: 10px;
  231. margin-bottom: 3px;
  232. border-radius: 100%;
  233. width: 24px;
  234. height: 24px;
  235. background-color: #E83F56;
  236. }
  237. .c-green:before {
  238. content: "•";
  239. color: #097A14;
  240. margin-left: 6px;
  241. font-size: 30px;
  242. font-weight: bold;
  243. line-height: 28px;
  244. display: inline-block;
  245. margin-top: 10px;
  246. margin-bottom: 3px;
  247. border-radius: 100%;
  248. width: 24px;
  249. height: 24px;
  250. background-color: #097A14;
  251. }
  252. .c-orange:before {
  253. content: "•";
  254. color: #DCA40A;
  255. margin-left: 6px;
  256. font-size: 30px;
  257. font-weight: bold;
  258. line-height: 28px;
  259. display: inline-block;
  260. margin-top: 10px;
  261. margin-bottom: 3px;
  262. border-radius: 100%;
  263. width: 24px;
  264. height: 24px;
  265. background-color: #DCA40A;
  266. }
  267. .c-purple:before {
  268. content: "•";
  269. color: #DC0AD5;
  270. margin-left: 6px;
  271. font-size: 30px;
  272. font-weight: bold;
  273. line-height: 28px;
  274. display: inline-block;
  275. margin-top: 10px;
  276. margin-bottom: 3px;
  277. border-radius: 100%;
  278. width: 24px;
  279. height: 24px;
  280. background-color: #DC0AD5;
  281. }
  282. .c-grey1:before {
  283. content: "•";
  284. display: inline-block;
  285. margin-bottom: 3px;
  286. border-radius: 100%;
  287. width: 24px;
  288. height: 24px;
  289. background-color: #474747;
  290. color: #474747;
  291. margin-left: 6px;
  292. font-size: 30px;
  293. font-weight: bold;
  294. line-height: 28px;
  295. }
  296. .c-grey2:before {
  297. content: "•";
  298. display: inline-block;
  299. margin-bottom: 3px;
  300. border-radius: 100%;
  301. width: 24px;
  302. height: 24px;
  303. background-color: #202020;
  304. color: #202020;
  305. margin-left: 6px;
  306. font-size: 30px;
  307. font-weight: bold;
  308. line-height: 28px;
  309. }
  310. .c-grey3:before {
  311. content: "•";
  312. display: inline-block;
  313. margin-bottom: 3px;
  314. border-radius: 100%;
  315. width: 24px;
  316. height: 24px;
  317. background-color: #636363;
  318. color: #636363;
  319. margin-left: 6px;
  320. font-size: 30px;
  321. font-weight: bold;
  322. line-height: 28px;
  323. }
  324. .c-grey4:before {
  325. content: "•";
  326. display: inline-block;
  327. margin-bottom: 3px;
  328. border-radius: 100%;
  329. width: 24px;
  330. height: 24px;
  331. background-color: #9E9E9E;
  332. color: #9E9E9E;
  333. margin-left: 6px;
  334. font-size: 30px;
  335. font-weight: bold;
  336. line-height: 28px;
  337. }
  338. .c-grey5:before {
  339. content: "•";
  340. display: inline-block;
  341. margin-bottom: 3px;
  342. border-radius: 100%;
  343. width: 24px;
  344. height: 24px;
  345. background-color: #BBBBBB;
  346. color: #BBBBBB;
  347. margin-left: 6px;
  348. font-size: 30px;
  349. font-weight: bold;
  350. line-height: 28px;
  351. }
  352. .c-grey6:before {
  353. content: "•";
  354. display: inline-block;
  355. margin-bottom: 3px;
  356. border-radius: 100%;
  357. width: 24px;
  358. height: 24px;
  359. background-color: #E3E3E3;
  360. color: #E3E3E3;
  361. margin-left: 6px;
  362. font-size: 30px;
  363. font-weight: bold;
  364. line-height: 28px;
  365. }
  366. .btn-plus {
  367. display: inline-block;
  368. background-color: #707070;
  369. width: 17px;
  370. height: 17px;
  371. border-radius: 2px;
  372. }
  373. .plus-tel {
  374. margin-top: 15px;
  375. margin-bottom: 3px;
  376. }
  377. .text {
  378. display: inline-block;
  379. font-size: 12px;
  380. color: #707070;
  381. }
  382. .radio {
  383. margin-left: -5px;
  384. }
  385. input[type=radio] {
  386. display: none;
  387. }
  388. .colours input[type=radio]:checked+label:before {
  389. margin-top: 20px;
  390. content: "•";
  391. color: white;
  392. font-size: 30px;
  393. text-align: center;
  394. font-weight: bold;
  395. line-height: 28px;
  396. }
  397. input[type=checkbox] {
  398. display: none;
  399. }
  400. .l2:before {
  401. content: "‎✓";
  402. color: #707070;
  403. font-size: 10px;
  404. text-align: center;
  405. font-weight: bold;
  406. line-height: 20px;
  407. display: inline-block;
  408. width: 17px;
  409. height: 17px;
  410. margin-right: 10px;
  411. background-color: #707070;
  412. border-radius: 2px;
  413. }
  414. input[type=radio]:checked+label:before {
  415. text-align: center;
  416. }
  417. :before {
  418. cursor: pointer;
  419. }
  420. input[type=checkbox]:checked+label:before {
  421. content: "‎✓";
  422. color: white;
  423. font-size: 10px;
  424. text-align: center;
  425. font-weight: bold;
  426. line-height: 20px;
  427. }
  428. .checkbox {
  429. margin-left: 30px;
  430. }
  431. .radio {
  432. margin-bottom: 10px;
  433. }
  434. .row {
  435. display: flex;
  436. flex-direction: row;
  437. align-items: center;
  438. }
  439. .left:before {
  440. text-align: center;
  441. content: url(images/left.svg);
  442. display: inline-block;
  443. width: 24px;
  444. height: 15px;
  445. border-radius: 2px 0px 0px 2px;
  446. border: #AAAAAABF solid 1px;
  447. padding: 7px;
  448. margin-right: -5px;
  449. }
  450. .center:before {
  451. text-align: center;
  452. content: url(images/center.svg);
  453. display: inline-block;
  454. width: 24px;
  455. height: 15px;
  456. border: #AAAAAABF solid 1px;
  457. padding: 7px;
  458. }
  459. .right:before {
  460. text-align: center;
  461. content: url(images/right.svg);
  462. display: inline-block;
  463. width: 24px;
  464. height: 15px;
  465. border-radius: 0px 2px 2px 0px;
  466. border: #AAAAAABF solid 1px;
  467. padding: 7px;
  468. margin-left: -5px;
  469. }
  470. .align-radio {
  471. margin-left: 30px;
  472. margin-top: 10px;
  473. }
  474. .align-radio input[type=radio]:checked+label:before {
  475. background-color: #D9D9D9;
  476. }
  477. .s24:before {
  478. text-align: center;
  479. content: "24px";
  480. display: inline-block;
  481. width: 24px;
  482. height: 15px;
  483. border-radius: 2px 0px 0px 2px;
  484. border: #AAAAAABF solid 1px;
  485. padding: 7px;
  486. margin-right: -5px;
  487. font-size: 12px;
  488. }
  489. .s26:before {
  490. text-align: center;
  491. content: "26px";
  492. display: inline-block;
  493. width: 24px;
  494. height: 15px;
  495. border: #AAAAAABF solid 1px;
  496. padding: 7px;
  497. font-size: 12px;
  498. }
  499. .s28:before {
  500. text-align: center;
  501. content: "28px";
  502. display: inline-block;
  503. width: 24px;
  504. height: 15px;
  505. border-radius: 0px 2px 2px 0px;
  506. border: #AAAAAABF solid 1px;
  507. padding: 7px;
  508. margin-left: -5px;
  509. font-size: 12px;
  510. }
  511. .size-radio {
  512. margin-left: 30px;
  513. margin-top: 10px;
  514. }
  515. .size-radio input[type=radio]:checked+label:before {
  516. background-color: #D9D9D9;
  517. }
  518. .s14:before {
  519. text-align: center;
  520. content: "14px";
  521. display: inline-block;
  522. width: 24px;
  523. height: 15px;
  524. border-radius: 2px 0px 0px 2px;
  525. border: #AAAAAABF solid 1px;
  526. padding: 7px;
  527. margin-right: -5px;
  528. font-size: 12px;
  529. }
  530. .s16:before {
  531. text-align: center;
  532. content: "16px";
  533. display: inline-block;
  534. width: 24px;
  535. height: 15px;
  536. border: #AAAAAABF solid 1px;
  537. padding: 7px;
  538. font-size: 12px;
  539. }
  540. .s18:before {
  541. text-align: center;
  542. content: "18px";
  543. display: inline-block;
  544. width: 24px;
  545. height: 15px;
  546. border-radius: 0px 2px 2px 0px;
  547. border: #AAAAAABF solid 1px;
  548. padding: 7px;
  549. margin-left: -5px;
  550. font-size: 12px;
  551. }
  552. /* Дополнительный номер */
  553. #add_phone {
  554. margin-top: 11px;
  555. height: 17px;
  556. }
  557. #add_phone button {
  558. height: 17px;
  559. background: transparent;
  560. border: 0px solid transparent;
  561. outline: none;
  562. user-select: none;
  563. cursor: pointer;
  564. padding: 0px;
  565. }
  566. #add_phone button span {
  567. display: inline-block;
  568. font-size: 12px;
  569. font-family: Roboto;
  570. font-weight: 400;
  571. color: #707070;
  572. line-height: 17px;
  573. transform: translateY(-4px);
  574. margin-left: 4px;
  575. }
  576. #add_phone button .ico {
  577. display: inline-block;
  578. width: 17px;
  579. height: 17px;
  580. border: 0 solid transparent;
  581. background: 0% 0% no-repeat padding-box url('images/plus.svg');
  582. }
  583. #remove_phone {
  584. display: none;
  585. height: 17px;
  586. background: transparent;
  587. border: 0px solid transparent;
  588. outline: none;
  589. user-select: none;
  590. cursor: pointer;
  591. padding: 0px;
  592. }
  593. #remove_phone .ico {
  594. transform: translateY(3px);
  595. margin-left: 5px;
  596. display: inline-block;
  597. width: 17px;
  598. height: 17px;
  599. border: 0 solid transparent;
  600. background: 0% 0% no-repeat padding-box url('images/minus.svg');
  601. }
  602. #phone2 {
  603. width: 222px;
  604. display: none;
  605. }
  606. </style>
  607. </head>
  608. <body>
  609. <div class="wrapper">
  610. <div class="construct">
  611. <div class="construct-wrap">
  612. <!-- <form name="business-card"> -->
  613. <div class="header">Конструктор визиток</div><br>
  614. <label for="org" class="l">Наименование организации</label><br>
  615. <input id="org" type="text" name="org" autofocus=""><br>
  616. <label for="name" class="l">Фамилия, имя, отчество</label><br>
  617. <div class="row">
  618. <input id="name" type="text" name="name"><br>
  619. <div class="align-radio">
  620. <input id="left" type="radio" name="a-name" value="left">
  621. <label for="left" class="left"></label>
  622. <input id="center" type="radio" name="a-name" value="center" checked="">
  623. <label for="center" class="center "></label>
  624. <input id="right" type="radio" name="a-name" value="right">
  625. <label for="right" class="right "></label>
  626. </div>
  627. <div class="size-radio">
  628. <input id="s24" type="radio" name="s-name" value="24px">
  629. <label for="s24" class="s24"></label>
  630. <input id="s26" type="radio" name="s-name" value="26px" checked="">
  631. <label for="s26" class="s26 "></label>
  632. <input id="s28" type="radio" name="s-name" value="28px">
  633. <label for="s28" class="s28 "></label>
  634. </div>
  635. </div>
  636. <div class="colours">
  637. <div class="radio">
  638. <input id="c-black" type="radio" name="c-name" value="#202020" checked>
  639. <label for="c-black" class="c-black "></label>
  640. <input id="c-blue" type="radio" name="c-name" value="#3F88E8">
  641. <label for="c-blue" class="c-blue "></label>
  642. <input id="c-red" type="radio" name="c-name" value="#E83F56">
  643. <label for="c-red" class="c-red "></label>
  644. <input id="c-green" type="radio" name="c-name" value="#097A14">
  645. <label for="c-green" class="c-green "></label>
  646. <input id="c-orange" type="radio" name="c-name" value="#DCA40A">
  647. <label for="c-orange" class="c-orange "></label>
  648. <input id="c-purple" type="radio" name="c-name" value="#DC0AD5">
  649. <label for="c-purple" class="c-purple "></label>
  650. </div>
  651. </div>
  652. <label for="position" class="l">Должность</label><br>
  653. <div class="row">
  654. <input id="position" type="text" name="position"> <br>
  655. <div class="align-radio">
  656. <input id="pleft" type="radio" name="a-position" value="left">
  657. <label for="pleft" class="left"></label>
  658. <input id="pcenter" type="radio" name="a-position" value="center" checked="">
  659. <label for="pcenter" class="center "></label>
  660. <input id="pright" type="radio" name="a-position" value="right">
  661. <label for="pright" class="right "></label>
  662. </div>
  663. <div class="size-radio">
  664. <input id="s14" type="radio" name="s-position" value="14px">
  665. <label for="s14" class="s14"></label>
  666. <input id="s16" type="radio" name="s-position" value="16px" checked="">
  667. <label for="s16" class="s16 "></label>
  668. <input id="s18" type="radio" name="s-position" value="18px">
  669. <label for="s18" class="s18"></label>
  670. </div>
  671. </div>
  672. <div class="colours">
  673. <div class="radio">
  674. <input id="c-grey1" type="radio" name="c-position" value="#474747" checked="">
  675. <label for="c-grey1" class="c-grey1 "></label>
  676. <input id="c-grey2" type="radio" name="c-position" value="#202020">
  677. <label for="c-grey2" class="c-grey2 "></label>
  678. <input id="c-grey3" type="radio" name="c-position" value="#636363">
  679. <label for="c-grey3" class="c-grey3 "></label>
  680. <input id="c-grey4" type="radio" name="c-position" value="#9E9E9E">
  681. <label for="c-grey4" class="c-grey4 "></label>
  682. <input id="c-grey5" type="radio" name="c-position" value="#BBBBBB">
  683. <label for="c-grey5" class="c-grey5 "></label>
  684. <input id="c-grey6" type="radio" name="c-position" value="#E3E3E3">
  685. <label for="c-grey6" class="c-grey6 "></label>
  686. </div>
  687. </div>
  688. <div>
  689. <label for="phone" class="l">Номер телефона </label><br>
  690. <input id="phone" name="phone" type="tel" maxlength="50"><br>
  691. <input id="phone2" name="phone2" type="tel" maxlength="50">
  692. <button onclick="PhoneMinus();" title="Убрать дополнительный номер" id="remove_phone">
  693. <span class="ico"></span>
  694. </button>
  695. <div id="add_phone">
  696. <button onclick="PhonePlus();" title="Добавить дополнительный номер">
  697. <span class="ico"></span><span>Добавить ещё один телефон</span>
  698. </button>
  699. </div>
  700. </div>
  701. <label for="email" class="l">E-mail</label><br>
  702. <div class="row">
  703. <input id="email" type="email" name="email"><br>
  704. <div class="checkbox">
  705. <input id="check1" type="checkbox" name="check" value="check1">
  706. <label for="check1" class="l2">Отображать</label>
  707. </div>
  708. </div>
  709. <label for="address" class="l">Адрес</label><br>
  710. <div class="row">
  711. <input id="address" type="text" name="address"><br>
  712. <div class="checkbox">
  713. <input id="check2" type="checkbox" name="check" value="check2">
  714. <label for="check2" class="l2">Отображать</label>
  715. </div>
  716. </div>
  717. <input type="button" class="button" value="Применить" onclick="Card();">
  718. <!-- </form> -->
  719. </div>
  720. </div>
  721. <div class="card">
  722. <div class="card-wrap">
  723. <div id="org-c" class="org"></div>
  724. <div id="name-c" class="name size26 align-center grey2"></div>
  725. <div id="position-c" class="position size14 align-center grey1"></div>
  726. <div class="null"></div>
  727. <div class="info">
  728. <div id="phone-c" class="info-number"></div>
  729. <div id="phone2-c" class="info-number"></div>
  730. <div id="email-c" class="info-email"></div>
  731. <div id="address-c" class="info-address"></div>
  732. </div>
  733. </div>
  734. </div>
  735. </div>
  736. <script>
  737. function PhoneMinus() {
  738. document.getElementById("phone2").style.display = "none";
  739. document.getElementById("phone2").value = "";
  740. document.getElementById("remove_phone").style.display = "none";
  741. document.getElementById("add_phone").style.display = "";
  742. }
  743. function PhonePlus() {
  744. document.getElementById("phone2").style.display = "inline-block";
  745. document.getElementById("remove_phone").style.display = "inline-block";
  746. document.getElementById("add_phone").style.display = "none";
  747. }
  748. function Card() {
  749. document.getElementById("org-c").innerHTML = document.getElementById("org").value;
  750. document.getElementById("name-c").innerHTML = document.getElementById("name").value;
  751. document.getElementById("position-c").innerHTML = document.getElementById("position").value;
  752. document.getElementById("phone-c").innerHTML = document.getElementById("phone").value;
  753. document.getElementById("phone2-c").innerHTML = document.getElementById("phone2").value;
  754. document.getElementById("email-c").innerHTML = document.getElementById("email").value;
  755. document.getElementById("address-c").innerHTML = document.getElementById("address").value;
  756. document.getElementById("name-c").style.color = document.querySelector('input[name="c-name"]:checked').value;
  757. document.getElementById("name-c").style.textAlign = document.querySelector('input[name="a-name"]:checked').value;
  758. document.getElementById("name-c").style.fontSize = document.querySelector('input[name="s-name"]:checked').value;
  759. document.getElementById("position-c").style.color = document.querySelector('input[name="c-position"]:checked').value;
  760. document.getElementById("position-c").style.textAlign = document.querySelector('input[name="a-position"]:checked').value;
  761. document.getElementById("position-c").style.fontSize = document.querySelector('input[name="s-position"]:checked').value;
  762. if (document.getElementById("phone2").value != "") {
  763. document.getElementById("phone2-c").style.display = "block";
  764. } else {
  765. document.getElementById("phone2-c").style.display = "none";
  766. }
  767. if (document.getElementById("check1").checked == true) {
  768. document.getElementById("email-c").style.display = "block";
  769. } else {
  770. document.getElementById("email-c").style.display = "none";
  771. }
  772. if (document.getElementById("check2").checked == true) {
  773. document.getElementById("address-c").style.display = "block";
  774. } else {
  775. document.getElementById("address-c").style.display = "none";
  776. }
  777. }
  778. </script>
  779. </body>
  780. </html>