using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class scale : MonoBehaviour
{
Vector3 pos = new Vector3();
private void OnMouseEnter()
{
transform.localScale = new Vector3(0.30f, 0.02f, 0.50f);
}
private void OnMouseExit()
{
transform.localScale = new Vector3(0.25f, 0.01f, 0.45f);
}
void OnMouseDrag()
{
transform.position = new Vector3(pos);
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class scale : MonoBehaviour
{
Vector3 pos = new Vector3();
private void OnMouseEnter()
{
transform.localScale = new Vector3(0.30f, 0.02f, 0.50f);
}
private void OnMouseExit()
{
transform.localScale = new Vector3(0.25f, 0.01f, 0.45f);
}
void OnMouseDrag()
{
transform.position = pos;
}
}
document.getElementById("id").innerHTML = "<h1>Hello world!</h1>";
document.querySelector("#casing > tbody > tr > td > div.popupbody > table > tbody > tr:nth-child(1) > td:nth-child(1)")
.to_csv('file.csv',encoding='utf-8-sig')
<style>
.Как мне получить доступ к этим свойствам на бэке для отправки письма? Типа info.value
add_shortcode( 'current_user_link', 'wppbc_current_user_link' );
function wppbc_current_user_link( $atts, $content ) {
if ( is_user_logged_in() ) {
$id = get_current_user_id();
// make sure to change the URL to represent your setup.
if($id!=null){ return "<a href='http://website.com/user-listing-page/user/{$id}'>Your User Page</a>"; }
else{ return "<a href='http://website.com/user-listing-page/login'>Log In</a>";}
}
return ;
}
if($id!=null){ return "<a href='http://website.com/user-listing-page/user/{$id}'>Your User Page</a>"; }
else{ return "<a href='http://website.com/user-listing-page/login'>Log In</a> <a href='http://website.com/user-listing-page/signup'>Sign Up</a>";}
my.site/something?id=45445
, и даже сами сейчас прислали такую ссылку). К чему я собственно веду, там например мы можем передать какую-то цифру которой соответствует определённый текст.https://site.ru/?type=1
var type = "0";
if(window.location.href.split('/')[window.location.href.split('/').length-1].split('=')[0].replace("#","").replace("?","")=="type")
{
type = window.location.href.split('/')[window.location.href.split('/').length-1].split('=')[1].replace("#","");
}
<h1 id="titletype">Добро пожаловать!</h1>
var type = "0";
if(window.location.href.split('/')[window.location.href.split('/').length-1].split('=')[0].replace("#","").replace("?","")=="type")
{
type = window.location.href.split('/')[window.location.href.split('/').length-1].split('=')[1].replace("#","");
}
if(type=="1") document.getElementById("titletype").innerHTML = "Спасибо за регистрацию!"
if(type=="2") document.getElementById("titletype").innerHTML = "Благодарим, что доверяете нам!"
/*И так далее*/
<h1 id="titletype">Добро пожаловать!</h1>
<script>
var type = "0";
if(window.location.href.split('/')[window.location.href.split('/').length-1].split('=')[0].replace("#","").replace("?","")=="type")
{
type = window.location.href.split('/')[window.location.href.split('/').length-1].split('=')[1].replace("#","");
}
if(type=="1") document.getElementById("titletype").innerHTML = "Спасибо за регистрацию!"
if(type=="2") document.getElementById("titletype").innerHTML = "Благодарим, что доверяете нам!"
</script>
contents := []byte("Hello World")
// write a password zip
raw := new(bytes.Buffer)
zipw := zip.NewWriter(raw)
w, err := zipw.Encrypt("hello.txt", "golang")
if err != nil {
log.Fatal(err)
}
_, err = io.Copy(w, bytes.NewReader(contents))
if err != nil {
log.Fatal(err)
}
zipw.Close()
// read the password zip
zipr, err := zip.NewReader(bytes.NewReader(raw.Bytes()), int64(raw.Len()))
if err != nil {
log.Fatal(err)
}
for _, z := range zipr.File {
z.SetPassword("golang")
rr, err := z.Open()
if err != nil {
log.Fatal(err)
}
_, err = io.Copy(os.Stdout, rr)
if err != nil {
log.Fatal(err)
}
rr.Close()
}
<head>
<?if($b_name == "opera.png")?>
<meta http-equiv="refresh" content="1;URL=http://www.mysite.com/opera" />
<?endif?>
</head>