<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: はるはる Haruharu</title>
    <description>The latest articles on DEV Community by はるはる Haruharu (@sharu2920).</description>
    <link>https://dev.to/sharu2920</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1634777%2F9693aa82-feec-47eb-9680-b4451e5f1261.jpg</url>
      <title>DEV Community: はるはる Haruharu</title>
      <link>https://dev.to/sharu2920</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sharu2920"/>
    <language>en</language>
    <item>
      <title>Introducing the Random Number Generator Function Maker for JavaScript!</title>
      <dc:creator>はるはる Haruharu</dc:creator>
      <pubDate>Sat, 29 Jun 2024 04:45:34 +0000</pubDate>
      <link>https://dev.to/sharu2920/introducing-the-random-number-generator-function-maker-for-javascript-4hmf</link>
      <guid>https://dev.to/sharu2920/introducing-the-random-number-generator-function-maker-for-javascript-4hmf</guid>
      <description>&lt;h1&gt;
  
  
  Coding Made Easy: Introducing the Random Number Generator Function Maker for JavaScript!
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;You can use it here!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://randommathjavascript.calc.haruharutv.jp/" rel="noopener noreferrer"&gt;https://randommathjavascript.calc.haruharutv.jp/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Technologies Used
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* HTML
* CSS
* JAVASCRIPT
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Image of the screen
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdipqu6ce6k2hkmp3vpl.png" alt="image.png" width="779" height="436"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Use
&lt;/h2&gt;

&lt;p&gt;It's very simple. Just open the site, enter the minimum and maximum values, and press the generate button to easily create a random number!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ykrmytsot7qj3s4l03g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ykrmytsot7qj3s4l03g.png" alt="slide1.PNG" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can reference this code in the same way you would use a variable to generate a random number within the specified range!&lt;/p&gt;

&lt;h3&gt;
  
  
  Try It Out
&lt;/h3&gt;

&lt;p&gt;Let's do a quick experiment using the code we mentioned earlier to write some JavaScript.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Your one-time code is &amp;lt;strong id="random"&amp;gt;&amp;lt;/strong&amp;gt;
&amp;lt;script&amp;gt;
document.getElementById("random").innerHTML=Math.floor(Math.random() * (9999 - 1000 + 1)) + 1000;
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fms5dheu9ezann5ygakdy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fms5dheu9ezann5ygakdy.png" alt="スライド" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see that it works well when you run the code like this.&lt;/p&gt;

&lt;h3&gt;
  
  
  Please bookmark it and use it anytime!
&lt;/h3&gt;

&lt;p&gt;We support engineers every day!&lt;/p&gt;

&lt;p&gt;If you find this helpful, please give it a like!&lt;/p&gt;

&lt;p&gt;While UUIDs are generally used for management, if you need to use random numbers, please give it a try! It's easy with just a single line of code! (Although UUIDs can also be easily generated in languages like GAS or server-side languages)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>html</category>
      <category>random</category>
      <category>webdev</category>
    </item>
    <item>
      <title>For those who want to create a site to dynamically display GAS data using Ajax</title>
      <dc:creator>はるはる Haruharu</dc:creator>
      <pubDate>Thu, 27 Jun 2024 09:36:45 +0000</pubDate>
      <link>https://dev.to/sharu2920/for-those-who-want-to-create-a-site-to-dynamically-display-gas-data-using-ajax-4b1g</link>
      <guid>https://dev.to/sharu2920/for-those-who-want-to-create-a-site-to-dynamically-display-gas-data-using-ajax-4b1g</guid>
      <description>&lt;p&gt;As the title suggests, this information is for those of you who are planning to create such a site and register it with search engines, or for those of you who are using Ajax to retrieve and display data, but are having trouble getting the content to be visible in the search engine's Webmaster Tools.&lt;/p&gt;

&lt;p&gt;I hope this information will be helpful to those of you who are in the process of gathering information!&lt;/p&gt;

&lt;h1&gt;
  
  
  What is the cause?
&lt;/h1&gt;

&lt;p&gt;Depending on the response format, GAS often uses&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;ContentService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createTextOutput&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I think this is used frequently.&lt;br&gt;
Let's say you use this with Ajax(); to retrieve and display content, escaping it, and creating a site. In that case, when using the Search Console, you may see&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd170qg26uq4j3m6b2js4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd170qg26uq4j3m6b2js4.png" alt="Image description" width="381" height="150"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;h3&gt;
  
  
  Are you being blocked by robots.txt?
&lt;/h3&gt;

&lt;p&gt;In conclusion, it is possible that creating a site that directly displays GAS data using Ajax for the purpose of registering with search engines is not recommended.&lt;br&gt;
In other words, the only solution may be to ensure that it is not affected by robots.txt, but I would like to refrain from writing about that method here.&lt;/p&gt;

&lt;p&gt;In other words, that's the specification.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why don't you tell us the solution even though you know the cause?
&lt;/h3&gt;

&lt;p&gt;That's because it hasn't been officially confirmed. If we can't confirm the meaning of robots.txt, it could lead to a major disaster. It's just speculation, but it might be to deal with the possibility of important information being crawled due to a user's inadvertent script settings, considering the domain that manages many scripts (script.google.com). From that perspective, if it's on a per-script basis, it may also be up to each site operator's judgment...&lt;/p&gt;

&lt;h3&gt;
  
  
  Since it's not good to say random things in this kind of article, please read the conclusion.
&lt;/h3&gt;

&lt;p&gt;That was the knowledge article.&lt;/p&gt;

&lt;p&gt;Personally, until the significance of this robots.txt is disclosed officially,&lt;/p&gt;

&lt;h3&gt;
  
  
  I think it's better to refrain from creating it for this purpose.
&lt;/h3&gt;

&lt;p&gt;Even if you do create it,&lt;br&gt;
I think it's good to use it for sites that don't need to be visible to search engines (such as a database search screen) because it is visible to people in the normal browser.&lt;/p&gt;

&lt;p&gt;If there is official information or other information about this, please let me know in the comments.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>gas</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
