index.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <!DOCTYPE html>
  2. <html lang="en" class="section">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Mie calculator</title>
  6. <meta name='viewport' content='width=device-width, initial-scale=1'>
  7. <link rel='stylesheet' href='buefy.min.css'>
  8. <link rel='stylesheet' href='materialdesignicons.min.css'>
  9. <link rel='stylesheet' href='all.css'>
  10. <!-- <link rel='stylesheet' href='https://unpkg.com/buefy/dist/buefy.min.css'>-->
  11. <!-- <link rel='stylesheet' href='https://cdn.materialdesignicons.com/2.0.46/css/materialdesignicons.min.css'>-->
  12. <!-- <link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.0.6/css/all.css'>-->
  13. </head>
  14. <body>
  15. <!-- partial:index.partial.html -->
  16. <div id="app" class="container">
  17. <section style="padding: 1rem">
  18. <button class="button is-primary is-medium"
  19. @click="isShowInfo = true">
  20. Show info
  21. </button>
  22. <b-modal :active.sync="isShowInfo">
  23. <div class="message" style="padding: 2rem">
  24. <span style="text-decoration: underline;text-emphasis: before;font-weight: bold;">Usage:</span>
  25. <br><br>
  26. Feel free to use provided software, however, use it at your own risk. We made our best effort to verify
  27. it is correct, however, we do not provide any warranty.
  28. <br><br>
  29. If it was usefull for your project, please, cite in your related paper the following reference:
  30. <br><br>
  31. <article style="margin-left: 1rem">
  32. <div style="font-style: italic; padding-bottom: 0.5rem">"Mie calculation of electromagnetic near-field
  33. for a multilayered sphere"</div>
  34. Konstantin Ladutenko, Umapada Pal, Antonio Rivera, Ovidio Peña-Rodríguez<br>
  35. <span style="font-weight: bold">Comp. Phys. Comm., vol. 214, pp. 225–230, 2017</span>
  36. </article>
  37. </div>
  38. </b-modal>
  39. </section>
  40. <section>
  41. <div class="field is-horizontal">
  42. <div class="field-label is-normal">
  43. <label class="label">Units</label>
  44. </div>
  45. <div class="field-body">
  46. <b-select v-model="units">
  47. <option units="nm">nm</option>
  48. <option units="mkm">mkm</option>
  49. <option units="mm">mm</option>
  50. <option units="cm">cm</option>
  51. <option units="m">m</option>
  52. <option units="km">km</option>
  53. </b-select>
  54. </div>
  55. </div>
  56. <div class="field is-horizontal">
  57. <div class="field-label is-normal">
  58. <label class="label">Wavelength</label>
  59. </div>
  60. <div class="field-body">
  61. <div class="field is-grouped is-grouped-multiline">
  62. <input-with-units title="from" v-bind:units="units"
  63. v-bind:value="simulationSetup.fromWL"
  64. @newdata="simulationSetup.fromWL=$event"></input-with-units>
  65. <input-with-units title="to" v-bind:units="units"
  66. v-bind:value="simulationSetup.toWL"
  67. @newdata="simulationSetup.toWL=$event"></input-with-units>
  68. <input-with-units title="step" v-bind:units="units"
  69. v-bind:value="simulationSetup.stepWL"
  70. @newdata="simulationSetup.stepWL=$event"></input-with-units>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="field is-horizontal">
  75. <div class="field-label is-normal">
  76. <label class="label">Spherical particle</label>
  77. </div>
  78. <div class="field-body">
  79. <div class="field is-grouped is-grouped-multiline">
  80. <input-with-units title="R" v-bind:units="units"
  81. v-bind:value="simulationSetup.R"
  82. @newdata="simulationSetup.R=$event"></input-with-units>
  83. <input-with-units title="Re(n)" units=""
  84. v-bind:value="simulationSetup.reN"
  85. @newdata="simulationSetup.reN=$event"></input-with-units>
  86. <input-with-units title="Im(n)" units=""
  87. v-bind:value="simulationSetup.imN"
  88. @newdata="simulationSetup.imN=$event"></input-with-units>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="field is-horizontal">
  93. <div class="field-label is-normal">
  94. <label class="label">Modes to plot</label>
  95. </div>
  96. <div class="field-body">
  97. <b-input v-model="simulationSetup.total_mode_n" type='number' min=1 style="width:7rem"></b-input>
  98. </div>
  99. </div>
  100. <div>From {{simulationSetup.fromWL}} to {{simulationSetup.toWL}} {{ units }}
  101. <br>
  102. Changes:{{ changes }}
  103. </div>
  104. <div class="chart-container">
  105. <reactive-chart :chart="chart"></reactive-chart>
  106. </div>
  107. </section>
  108. </div>
  109. <!--<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>-->
  110. <script src="plotly-latest.min.js"></script>
  111. <!--<script src='https://cdnjs.cloudflare.com/ajax/libs/plotly.js/1.39.1/plotly.js'></script>-->
  112. <script src='vue.min.js'></script>
  113. <script src='buefy.min.js'></script>
  114. <!--<script src='https://unpkg.com/vue/dist/vue.min.js'></script>-->
  115. <!--<script src='https://unpkg.com/buefy/dist/buefy.min.js'></script>-->
  116. <!--<script src='https://unpkg.com/axios/dist/axios.min.js'></script>-->
  117. <!--<script src='https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js'></script>-->
  118. <!--<script src='https://unpkg.com/cleave.js/dist/cleave.min.js'></script>-->
  119. <!--<script src='https://cdn.jsdelivr.net/npm/sortablejs@1.6.1/Sortable.min.js'></script>-->
  120. <!--<script src='https://cdn.jsdelivr.net/npm/vee-validate@2.1.0-beta.9/dist/vee-validate.min.js'></script>-->
  121. <script src="./tested-components.js"></script>
  122. <!--<script src="nmie.js"></script>-->
  123. <script>
  124. 'use strict';
  125. // var myExports = require('./nmie.js');
  126. //
  127. // console.log(Object.keys(myExports));
  128. // const nmie = new Module.nmie();
  129. </script>
  130. <script src="script.js"></script>
  131. <link rel="stylesheet" type="text/css" href="local.css">
  132. </body>
  133. </html>