Freeze screen in chrome debugger to CSS hover states, etc
https://stackoverflow.com/questions/17931571/freeze-screen-in-chrome-de…
Get the hover state in play on the screen while debugger tools are open, then on a mac hit fn f8.
https://stackoverflow.com/questions/17931571/freeze-screen-in-chrome-de…
Get the hover state in play on the screen while debugger tools are open, then on a mac hit fn f8.
function waitForElm(selector) { return new Promise(resolve => { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { resolve(document.querySelector(selector)); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); }); } waitForElm('.ief-entity-submit').then((elm) => { console.log('Element is ready'); console.log(elm.textContent); });
The format is the following:
git remote set-url origin https://USERID:PERSONAL_ACCESS_TOKEN@github.cms.gov/CMCS/MedicaidDrupal.git
Personal access token you generate from github under settings->developer settings->Personal access tokens
your .git/config should have a section that looks like this:
lando drush genc 0 --kill --bundles=survey_2021
or, this actually worked for me:
drush entity-delete node --bundle=survey_2021
git get the history of a line of code, in this case line 1427 of wr_investor.module
git log -L1427,+1:'wr_investor.module'
composer config --global process-timeout 6000
someone also suggested:
lando composer dump lando composer clearcache git pull origin develop delete vendor folder lando composer install
/Users/jamesbarnett/sites/AMA/freida/vendor/bin/phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info --report=full /Users/jamesbarnett/sites/AMA/freida/docroot/modules/custom/freida_bulk_delete/src/Commands/DeleteUserKeepContent.php
To send the json data in JavaScript
var xmlhttp = new XMLHttpRequest(); // new HttpRequest instance xmlhttp.open("POST", "/user/17352/post-dashboard"); xmlhttp.setRequestHeader("Content-Type", "application/json"); xmlhttp.send(JSON.stringify({advisorcomment:advisorComment}));
To receive the json data in PHP
$json_string = \Drupal::request()->getContent(); $decoded = \Drupal\Component\Serialization\Json::decode($json_string); print_r($decoded); $name = $decoded['name']; return new JsonResponse($name);