0
I Use This!
Activity Not Available

News

Posted almost 6 years ago by [email protected] (Sascha Manns)
Ever wished a animated typing effect in your webproject? If yes, you should definitive check out the typit.js library. Last days i stumbled upon that interesting library.The effect looks like:How could you implement it?Let we say, you would like to ... [More] use this effect to show others your different job experiences.First place a tag inside your code like that one: Then create a typeit.js file with the contentnew TypeIt('#replaceJobs', { strings: ["Job1", "Job2", "Job3"], speed: 200, cursorSpeed: 1000, nextStringDelay: 750, loop: true, breakLines: false, waitUntilVisible: true }).go(); Now add the JavaScript to your Layout Section: and refer your typeit.js to that page, where your "replaceJobs" tag is placed. Now your type effect will start :-) More on: https://typeitjs.com/ This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. If you liked this article: Become a Patron! [Less]
Posted almost 6 years ago by [email protected] (Sascha Manns)
Ever wished a animated typing effect in your webproject? If yes, you should definitive check out the typit.js library. Last days i stumbled upon that interesting library.The effect looks like:How could you implement it?Let we say, you would like to ... [More] use this effect to show others your different job experiences.First place a tag inside your code like that one: Then create a typeit.js file with the contentnew TypeIt('#replaceJobs', { strings: ["Job1", "Job2", "Job3"], speed: 200, cursorSpeed: 1000, nextStringDelay: 750, loop: true, breakLines: false, waitUntilVisible: true }).go(); Now add the JavaScript to your Layout Section: and refer your typeit.js to that page, where your "replaceJobs" tag is placed. Now your type effect will start :-) More on: https://typeitjs.com/ This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. If you liked this article: Become a Patron! [Less]
Posted about 6 years ago by [email protected] (Sascha Manns)
In dieser Woche implementierte ich ein kleines Feature, das die geschätzte Lesezeit eines Blogartikels anzeigt. In einem ersten Schritt benutze ich mein BlogStory Modell um an die Inhalte zu kommen. Mittels Razor ging ich wie folgt vor: Es werden die ... [More] Leerzeichen gezählt, und eine 1 hinzuaddiert. Dadurch wissen wir nun, wie viele Wörter der Artikel hat. Die meisten Menschen lesen zwischen 200 und 250 Wörter in der Minute. Daher teilen wir die Wortanzahl durch 250. Dadurch wissen wir nun die Minutenanzahl. Jetzt wird ein Modulo mit einer Division kombiniert um die Sekunden zu erhalten. @{ var word_count = @Model.Body; var counts = word_count.Count(ch => ch == ' ') + 1; var minutes = counts / 250; var seconds = counts % 250 / (250 / 60); var str_minutes = (minutes == 1) ? "Minute " : "Minutes "; var str_seconds = (seconds == 1) ? "Second " : "Seconds "; } Nun platzieren wir an der Stelle, an dem dies angezeigt werden soll, den folgenden Code: @minutes @str_minutes @seconds @str_secondsZur Zeit wird dies Clientseitig ausgeführt. Künftig ist eine Implementierung zur Serverseite vorgesehen. This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. [Less]
Posted about 6 years ago by [email protected] (Sascha Manns)
This week i implemented a feature what shows you, how many time you have to spend, to read a blog article. In the first step, i used my model BlogStory to get the content. Then Razor does the following: It counts the spaces between the words and adds ... [More] 1. So now we knowing how many words we have in that article. The most people can read 200 to 250 in one minute. So we need to divide the counted words with 250. Then we knowing, how many minutes it takes to read. Then we combine a modulo with a divide to get the seconds. @{ var word_count = @Model.Body; var counts = word_count.Count(ch => ch == ' ') + 1; var minutes = counts / 250; var seconds = counts % 250 / (250 / 60); var str_minutes = (minutes == 1) ? "Minute " : "Minutes "; var str_seconds = (seconds == 1) ? "Second " : "Seconds "; } Now we placing the code for displaying the estimated time to read @minutes @str_minutes  @seconds @str_secondsOn the place, where this snipped is, will be the estimated time to read.Currently it is placed on client side. It is planned to move that function to server side in future. This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. If you liked this article, see Shawn's courses on Pluralsight. [Less]
Posted about 6 years ago by [email protected] (Sascha Manns)
This week i implemented a feature what shows you, how many time you have to spend, to read a blog article. In the first step, i used my model BlogStory to get the content. Then Razor does the following: It counts the spaces between the words and adds ... [More] 1. So now we knowing how many words we have in that article. The most people can read 200 to 250 in one minute. So we need to divide the counted words with 250. Then we knowing, how many minutes it takes to read. Then we combine a modulo with a divide to get the seconds. @{ var word_count = @Model.Body; var counts = word_count.Count(ch => ch == ' ') + 1; var minutes = counts / 250; var seconds = counts % 250 / (250 / 60); var str_minutes = (minutes == 1) ? "Minute " : "Minutes "; var str_seconds = (seconds == 1) ? "Second " : "Seconds "; } Now we placing the code for displaying the estimated time to read @minutes @str_minutes  @seconds @str_secondsOn the place, where this snipped is, will be the estimated time to read.Currently it is placed on client side. It is planned to move that function to server side in future. This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. [Less]
Posted about 6 years ago by [email protected] (Sascha Manns)
This week i implemented a feature what shows you, how many time you have to spend, to read a blog article. In the first step, i used my model BlogStory to get the content. Then Razor does the following: It counts the spaces between the words and adds ... [More] 1. So now we knowing how many words we have in that article. The most people can read 200 to 250 in one minute. So we need to divide the counted words with 250. Then we knowing, how many minutes it takes to read. Then we combine a modulo with a divide to get the seconds. @{ var word_count = @Model.Body; var counts = word_count.Count(ch => ch == ' ') + 1; var minutes = counts / 250; var seconds = counts % 250 / (250 / 60); var str_minutes = (minutes == 1) ? "Minute " : "Minutes "; var str_seconds = (seconds == 1) ? "Second " : "Seconds "; } Now we placing the code for displaying the estimated time to read @minutes @str_minutes  @seconds @str_secondsOn the place, where this snipped is, will be the estimated time to read.Currently it is placed on client side. It is planned to move that function to server side in future. This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. If you liked this article, see Shawn's courses on Pluralsight. [Less]
Posted about 6 years ago by [email protected] (Sascha Manns)
This week i implemented a feature what shows you, how many time you have to spend, to read a blog article. In the first step, i used my model BlogStory to get the content. Then Razor does the following: It counts the spaces between the words and adds ... [More] 1. So now we knowing how many words we have in that article. The most people can read 200 to 250 in one minute. So we need to divide the counted words with 250. Then we knowing, how many minutes it takes to read. Then we combine a modulo with a divide to get the seconds. @{ var word_count = @Model.Body; var counts = word_count.Count(ch => ch == ' ') + 1; var minutes = counts / 250; var seconds = counts % 250 / (250 / 60); var str_minutes = (minutes == 1) ? "Minute " : "Minutes "; var str_seconds = (seconds == 1) ? "Second " : "Seconds "; } Now we placing the code for displaying the estimated time to read @minutes @str_minutes  @seconds @str_secondsOn the place, where this snipped is, will be the estimated time to read.Currently it is placed on client side. It is planned to move that function to server side in future. This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. [Less]
Posted about 6 years ago by [email protected] (Sascha Manns)
This week i implemented a feature what shows you, how many time you have to spend, to read a blog article. In the first step, i used my model BlogStory to get the content. Then Razor does the following: It counts the spaces between the words and ... [More] adds 1. So now we knowing how many words we have in that article. The most people can read 200 to 250 in one minute. So we need to divide the counted words with 250. Then we knowing, how many minutes it takes to read. Then we combine a modulo with a divide to get the seconds. @{ var word_count = @Model.Body; var counts = word_count.Count(ch => ch == ' ') + 1; var minutes = counts / 250; var seconds = counts % 250 / (250 / 60); var str_minutes = (minutes == 1) ? "Minute" : "Minutes"; var str_seconds = (seconds == 1) ? "Second" : "Seconds";} Now we placing the code for displaying the estimated time to read @minutes @str_minutes @seconds @str_seconds On the place, where this snipped is, will be the estimated time to read. Currently it is placed on client side. It is planned to move that function to server side in future. This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. If you liked this article: Become a Patron! [Less]
Posted about 6 years ago by [email protected] (Sascha Manns)
This week i implemented a feature what shows you, how many time you have to spend, to read a blog article. In the first step, i used my model BlogStory to get the content. Then Razor does the following: It counts the spaces between the words and ... [More] adds 1. So now we knowing how many words we have in that article. The most people can read 200 to 250 in one minute. So we need to divide the counted words with 250. Then we knowing, how many minutes it takes to read. Then we combine a modulo with a divide to get the seconds. @{ var word_count = @Model.Body; var counts = word_count.Count(ch => ch == ' ') + 1; var minutes = counts / 250; var seconds = counts % 250 / (250 / 60); var str_minutes = (minutes == 1) ? "Minute" : "Minutes"; var str_seconds = (seconds == 1) ? "Second" : "Seconds";} Now we placing the code for displaying the estimated time to read @minutes @str_minutes @seconds @str_seconds On the place, where this snipped is, will be the estimated time to read. Currently it is placed on client side. It is planned to move that function to server side in future. This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. Wenn dir dieser Artikel gefallen hat, so . [Less]
Posted about 6 years ago by [email protected] (Sascha Manns)
This week i implemented a feature what shows you, how many time you have to spend, to read a blog article. In the first step, i used my model BlogStory to get the content. Then Razor does the following: It counts the spaces between the words and ... [More] adds 1. So now we knowing how many words we have in that article. The most people can read 200 to 250 in one minute. So we need to divide the counted words with 250. Then we knowing, how many minutes it takes to read. Then we combine a modulo with a divide to get the seconds. @{ var word_count = @Model.Body; var counts = word_count.Count(ch => ch == ' ') + 1; var minutes = counts / 250; var seconds = counts % 250 / (250 / 60); var str_minutes = (minutes == 1) ? "Minute" : "Minutes"; var str_seconds = (seconds == 1) ? "Second" : "Seconds";} Now we placing the code for displaying the estimated time to read @minutes @str_minutes @seconds @str_seconds On the place, where this snipped is, will be the estimated time to read. Currently it is placed on client side. It is planned to move that function to server side in future. This work by Sascha Manns is licensed under a Attribution-ShareAlike 3.0 Germany License (CC BY-SA 3.0 DE). Based on a work at saschamanns.de. If you liked this article: Become a Patron! [Less]