javascript – How to use the information entered in a text box

Hello, how to "use" the information inserted in a text box, to use with the tag in JavaScript?
Thank you.

I tried to change my URL and ended up losing access to my site? I entered the general settings and changed the WordPress URL and the site URL

****** I received this error message [https: //customize-WordPress-sample.local/] after trying to personalize my site as a general parameter *** the domain name of my site is www.emeylizzy.com.ng * **

10 numbers are entered in the program, the sum of the numbers, the average number and the major number are calculated and displayed

FOR cycle

The FOR cycle must be used for this program

c ++ – LeetCode: search for all possible letter combinations from a entered phone number

Problem statement:

Given a string containing numbers from 2 to 9 inclusive, return any possible letter combinations that the number could represent.

A mapping from the number to the letters (like on the phone buttons) is given below. Note that 1 does not match any letter.

This is a leetcode problem. I'm looking for feedback on how to write better and more elegant code. Any suggestions on style, simplicity, comments, etc. are welcome.

My code:

class Solution {
public:
  vector letterCombinations(string digits) {
    map> num_letter_map;
    construct_num_letter_map(num_letter_map);
    vector result;
    letter_combination_helper(digits, num_letter_map, 0, result, "");
    return result;
}

private:
  void construct_num_letter_map(map> &num_letter_map) {
    num_letter_map('2') = vector{'a', 'b', 'c'};
    num_letter_map('3') = vector{'d', 'e', 'f'};
    num_letter_map('4') = vector{'g', 'h', 'i'};
    num_letter_map('5') = vector{'j', 'k', 'l'};
    num_letter_map('6') = vector{'m', 'n', 'o'};
    num_letter_map('7') = vector{'p', 'q', 'r', 's'};
    num_letter_map('8') = vector{'t', 'u', 'v'};
    num_letter_map('9') = vector{'w', 'x', 'y', 'z'};

    return;
}

  void letter_combination_helper(string digits, const map> &num_letter_map, int i, vector &result, string s) {        
    if (i == digits.size()) {
        if (i != 0) {
            result.push_back(s);
        }
        return;
    }

    for (char c : num_letter_map.at(digits(i))) {
        letter_combination_helper(digits, num_letter_map, i+1, result, s + string({c}));
    }
}

};

gui design – Presentation of the form with fields which are sometimes entered and sometimes left

I am designing the user interface for a desktop application. In one of the windows, some interdependent properties of an object are listed. I want the user to be able to choose which properties should be used as input, which (outputs) should be calculated using the inputs as well as for entering the input values.

How would you do it?

For example, suppose the user is working with a sphere. The five properties relevant to him are:

  • Ray
  • area
  • volume
  • density and
  • Mass

Sometimes the user knows the density and radius, sometimes the density and volume, etc. With these entries, all other properties of the sphere can be calculated.

My first idea was to separate the variables into two blocks (input and output) and allow the user to drag and drop the properties between these two blocks. However, in the actual application, the number of variables is slightly larger (up to 20) and I would prefer to group them according to other criteria and leave them a static position.

The use of a different form for each set of entries is not possible due to the large number of possible combinations of entries.

Currently, my approach would be to list the properties as shown in the image below (illustrated layout for two different input sets). To switch between input and output, the user simply clicks on the properties. The properties themselves would be marked in italics / bold with the numeric fields enabled / disabled. A text would inform the user on how to switch between inputs / outputs. Is this approach correct? Is there a more intuitive way to switch between inputs / outputs without having to write the explanatory phrase displayed at the bottom of the image somewhere? I also don't know if the italic / bold approach is sufficient or if additional differentiation (for example the background color) would make the layout more user-friendly.

enter description of image here

dnd 5th – Inside the Rope Trick space, can aircraft-related capabilities access the aircraft from which they were entered?

My character, at the end of our last session, is located inside the "extra-dimensional space" created by Rope tour. He has already thrown Soul Cage and wishes to exploit the trapped soul using Eyes of the dead, which "creates an invisible sensor somewhere in (a) place if it is on the plane of existence where you are currently" to see what is happening in the large room * in which Rope tour has been sunk.

Is it possible? Or is the main material plane (where we were located before entering the Rope tour space) seen as a separate plane from the extra-dimensional space we currently inhabit?

*: the opening for Rope tour was placed just 5 feet from the ground, so we can't see much through the window at the bottom of the space.

dnd 5th – Inside the * Cheat trick * space, can aircraft-related abilities access the aircraft from which they were entered?

My character, at the end of our last session, is located inside the "extra-dimensional space" created by Rope tour. He has already thrown Soul Cage and wishes to exploit the trapped soul using Eyes of the dead, which "which creates an invisible sensor somewhere in (a) place if it is on the plane of existence where you are currently" to see what is happening in the large room * in which Rope tour has been sunk.

Is it possible? Or is the main material plane (where we were located before entering the Rope tour space) seen as a separate plane from the extra-dimensional space we currently inhabit?

*: the opening for Rope tour was placed just 5 feet from the ground, so we can't see much through the window at the bottom of the space.

metabox – Unable to display the value entered for a text entry in a meta box

So I've been searching for weeks and I know there are a lot of questions on this subject, but I can't figure out how to display the value that a user enters in a text field in a custom meta box. I get the field to appear in the meta box but when I enter the text and update or publish the post, the text disappears. I think I'm close, but I can't figure out how to use the nonce fields when saving the message. It uses an object oriented PHP (OOP) which I am very new so please forgive me. I will give all of my current code below. Any help is greatly appreciated.

class settingsapi
{

    public function register()
    {
        if ( ! empty($this->meta_boxes) ) {
            add_action('add_meta_boxes', array($this, 'add_meta_box') );
        }

    }

    // adds all the meta boxes

    public function add_meta_boxes(array $box) {
        $this->meta_boxes = $box;

        return $this;
    }

    public function add_meta_box() {
        foreach ( $this->meta_boxes as $meta_box ) {
            add_meta_box( $meta_box('id'), $meta_box('title'), $meta_box('callback'), $meta_box('screen'), $meta_box('context'), $meta_box('priority'));
        }
    }
}

This creates the content of the meta-box (this is where I think I am wrong)

    class meta_boxes {
    /**
     * Constructor.
     */
    public function __construct() {
        if ( is_admin() ) {
            add_action( 'load-post.php',     array( $this, 'init_metabox' ) );
            add_action( 'load-post-new.php', array( $this, 'init_metabox' ) );
        }

    }

    /**
     * Meta box initialization.
     */
    public function init_metabox() {
        add_action( 'add_meta_boxes', array( $this, 'add_metabox'  )        );
        add_action( 'save_post',      array( $this, 'save_metabox' ), 10, 2 );
    }

    /**
     * Adds the meta box.
     */
    public function add_metabox() {
        add_meta_box(
            'my-meta-box',
            __( 'My Meta Box', 'textdomain' ),
            array( $this, 'render_metabox' ),
            'funnels',
            'advanced',
            'default'
        );

    }

    /**
     * Renders the meta box.
     */
    public function render_metabox( $post ) {
        // Add nonce for security and authentication.
        wp_nonce_field( 'update_post', 'funnel_nonce' );

        // Use get_post_meta to retrieve an existing value from the database.
        $description = get_post_meta( $post->ID, 'my-meta-box', true );

        // Display the form, using the current value.
       ?> 
       
       

php – Delete some of the data entered by the user

I am developing a website to send videos to teachers, for this I have made a form with the following fields:

insert description of image here

Since I am still learning PHP. I would like to know if it is possible to have the youtube link inserted by the user as follows in mysql:

User inserted video link: https://www.youtube.com/watch?v=KBk-ayp6yyU

From the link, I would like the video code to go to mysql, for example:

KBk-ayp6yyU

Another example:

Link: https://www.youtube.com/watch?v=NZta28cFU3w

In mysql: NZta28cFU3w

How do you do that? Below is registrar_video:


Does the automated visa extension linked to COVID-19 until April 30, 2020 in Thailand also apply to foreigners who entered Thailand without a visa?

I read on https://immigration.go.th/content/visa_auto_extension (mirror):

👮‍♂️ The person whose visa expired on March 26, 2020 will be automatically extended until April 30, 2020. It is not necessary to request an extension of visa at the immigration office for this period and will not be fined 500 THB per day for this case.

Does the automated visa extension linked to COVID-19 until April 30, 2020 also apply to foreigners who entered Thailand without a visa?


I have transposed the question to: