Javascript – How to split and wrap lines in a section in each section?

I use "Detect Browser Wrapped Lines Using Javascript" to enclose each line in a line . However, I have a problem when more than one element needs to be split and wrapped.

For example: If I want to split and wrap more than one section, like:

    1 - Lorem Khaled Ipsum is a major key to success. They will try to close the door on you, just open it. Watch your back, but more importantly when you get out the shower, dry your back, it’s a cold world out there.
    2 - The key to more success is to get a massage once a week, very important, major key, cloth talk. Eliptical talk.

It will take up all the text .content, divide and wrap it in a and duplicate them. So the put looks like this;

    1 - Lorem Khaled Ipsum is a major key to success. They will try to close the door on you, just open it. Watch your back, but more importantly when you get out the shower, dry your back, it’s a cold world out there. 2 - The key to more success is to get a massage once a week, very important, major key, cloth talk. Eliptical talk.
    1 - Lorem Khaled Ipsum is a major key to success. They will try to close the door on you, just open it. Watch your back, but more importantly when you get out the shower, dry your back, it’s a cold world out there. 2 - The key to more success is to get a massage once a week, very important, major key, cloth talk. Eliptical talk.

Anyway, how to split and enclose each line in a in each section and not creating duplicate content?

Working example: https://codepen.io/openbayou/pen/poJwaXv

JS code:

$(".emails .multi-items").each(function (i) {
var $cont = $('.emails .multi-items .message-contain #content')
var text_arr = $cont.text().split(' ');
for (i = 0; i < text_arr.length; i++) {
  text_arr(i) = '' + text_arr(i) + ' ';
}

$cont.html(text_arr.join(''));
$wordSpans = $cont.find('span');

var lineArray = (),
  lineIndex = 0,
  lineStart = true,
  lineEnd = false

  $wordSpans.each(function(idx) {
      var pos = $(this).position();
      var top = pos.top;

      if (lineStart) {
          lineArray(lineIndex) = (idx);
          lineStart = false;

      } else {
          var $next = $(this).next();

          if ($next.length) {
              if ($next.position().top > top) {
                  lineArray(lineIndex).push(idx);
                  lineIndex++;
                  lineStart = true
              }
          } else {
              lineArray(lineIndex).push(idx);
          }
      }

  });


 //console.log( lineArray)
 for (i = 0; i < lineArray.length; i++) {
  var start = lineArray(i)(0),
      end = lineArray(i)(1) + 1;

  /* no end value pushed to array if only one word last line*/
  if (!end) {
      $wordSpans.eq(start).wrap('')
  } else {
      $wordSpans.slice(start, end).wrapAll('');
  }

 };
});

Magento 2, stop reloading the billing section when checking out while adding information about the new billing address

Whenever I try to insert information into a new billing address, the entire billing section is loaded immediately after adding a value to the zip code
It sends a request to http: // website / rest / us / V1 / carts / mine / shipping information
and http: // website / rest / us / V1 / carts / mine / totals and http: // website / customer / section / load /? section = messages & force_new_section_timestamp = true & _ =

Is this a way to prevent this section from being reloaded as it also causes problems with the shipping area?

html – CSS section height 100% within the body 100vh

I have the following code


    

with the following css

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    padding: 10px;
     background-color: #cfcfcf;
}

section {
    height: 100%;
    width: 100%;
}

section:nth-child(even) {
    position: relative;
    background: #0f0f0f;
}


The problem is that the height is given: 100%; and width: 100%; It should take up 100% of its container, but it creates vertical and horizontal scroll bars and breaks the design. Does anyone know how to solve this problem?Enter the image description here

WordPress shortcode for a section template

I created a section template called section-Countriesinfo.php on the folder home page in the theme folder and pasted this code

                   
'grants ' , 'scholarship_degree'=> 'bachelor', 'status'=>'publish', 'posts_per_page' => -4, 'tax_query' => array( array( 'taxonomy' => 'expired', 'field' => 'slug', 'terms' => array( 'expired' ), 'operator' => 'NOT IN', )),); $q = new WP_Query( $args ); ?>

then I pasted this code into Function.php

         function my_master_shortcode( $attr ) {
         ob_start();
         get_template_part('frontpage/section', 'bachelorscholarships');
         return ob_get_clean();
           }
         add_shortcode( 'mastergrants', 'my_master_shortcode' );

My problem is when I load the homepage to see that the update is still loading without end and gets stuck. Any help

Mobile – Should I keep my password change section in the profile change area or settings?

I've seen some mobile apps keep the password change section separate from the profile edit screen (e.g. Instagram), but others only on the profile edit screen.

I personally am used to looking for the settings icon whenever I want to change my password. However, since my app isn't really that big and doesn't have much to do, I should just remove the settings and change the password in the editing profile.

My app currently has this type of structure:

Enter the image description here

My profile has the option to edit the profile.

How can I include permanent links in the "Item Link" section of an approval process?

I have an existing process that includes several document approval steps. Depending on the result, the document in question is moved to different folders within the same library.

I am currently using the Link to the article dynamic piece of content in the "Item Link" section of the Start and wait for approval Step.

The first approval step is easy because the document is in the original folder. However, the document will be moved after the first approval. As soon as the flow rate reaches the second approval step, the Link to the article still points to the original location, which results in a 404 when the approver clicks the link to the document.

I've been thinking about turning that on Document ID service on the site collection (we use Sharepoint online;; The site collection is part of one hub), but I don't seem to be able to find any information on whether Flow is processing permanent / permanent / permanent links or whether this is the best way to do it at all.

TLDR:
How can I get a link that always points to the document in an approval process, regardless of where the document is at that time?

C # – Section 2: Classes – Designing a StackOverflow Post

Design a class called Post. This class models a StackOverflow contribution. It should have properties
for title, description and the date / time of creation. We should be able to vote up or down
An entry. We should also be able to see the current vote value. Make a contribution in the main method.
Vote up and down a few times and then display the current vote value.

In this exercise, you will learn that a StackOverflow contribution should provide up-voting methods
and down-voting. You shouldn't be able to set the Vote property from the outside.
Otherwise, you can accidentally change the votes of a class to 0 or random
Number. And so we create errors in our programs. The class should always protect theirs
Provide and hide the implementation details.

Teaching Tip: The goal of this exercise is to help you understand that classes should do this
Encapsulation of data AND behavior around this data. Many developers (including those with years of experience
Experience) tend to create classes that are pure data containers and other classes that are
pure behavior (method) providers. This is not object-oriented programming. This is
Process programming. Such programs are very fragile. Making a change breaks many parts
of the code.

This is the information that was given to me for this exercise in my C # tutorial. The following is my work code. I am still trying to understand object-oriented programming. I think I've set the properties so that you can get the information Do not give the option to set the vote property from the outside by setting the property to private. I also tried to protect the voting status so that you cannot vote up or down one by one, but still allow your vote to be changed and the number of votes displayed along with the protection of the voting status.

However, if anyone can see how to improve this, show a better way or teach me something new, I would very much appreciate it.

using System;

namespace ExerciseTwo
{
    class Post
    {
        public string Title { get; set; }
        public string Description { get; set; }
        public DateTime TimeDateCreated { get; private set; }
        public int VoteCount { get; private set; }
        private bool HasVotedUp;
        private bool HasVotedDown;

        public Post(string title, string description)
        {
            Title = title;
            Description = description;
            TimeDateCreated = DateTime.UtcNow;
            VoteCount = 0;
        }

        public void VoteUp()
        {
            if (HasVotedUp)
            {
                throw new Exception("You have already up-voted.");
            }
            else
            {
                VoteCount++;
                HasVotedUp = true;
                HasVotedDown = false;
            }
        }

        public void VoteDown()
        {
            if (HasVotedDown)
            {
                throw new Exception("You have already down-voted.");
            }
            else
            {
                VoteCount--;
                HasVotedDown = true;
                HasVotedUp = false;
            }
        }
    }
}

Script to demo how it could work.

namespace ExerciseTwo
{
    class Program
    {
        static void Main()
        {
            Post post = new Post("Does my post work?", "Test to see if my post works.");
            System.Console.WriteLine($"Title: {post.Title}");
            System.Console.WriteLine($"Description: {post.Description}");
            System.Console.WriteLine($"Date Created: {post.TimeDateCreated}");
            System.Console.WriteLine($"Post Count: {post.VoteCount}");
            post.VoteDown();
            System.Console.WriteLine($"Post Count: {post.VoteCount}");
            post.VoteUp();
            System.Console.WriteLine($"Post Count: {post.VoteCount}");
        }
    }
}

Thank you for your help!

Infopath – Add fields to a repeating section that are unique to each section

I have a list of school accreditation standards and an InfoPath form that only shows those on the list that meet the criteria selected in some drop lists and buttons. I'm trying to add some fields that the evaluator has to fill in for each item shown in the form. The problem is that in the repetition section, a field repeats itself instead of providing a separate field for comments for each element.
How can I create a field with different content for each list element in the standards? I keep using the standards for different accreditation events so I can't just add a field to the list.

Scrolling – good place to add a recommendation section

We are designing an insight area where users can see any critical status product or campaign.
We offer a "Recommended Section" at the bottom of the vertical scrolling page.
I have a confusion that users may not know if there is a helpful section that will lead them to solve the problem caused.

Is there an alternative solution for placing the "recommended" section?

My UX structure / hierarchy for this site is

Problem definition> Responsible error details> More detailed details, if available> Recommendation to solve the problems.