color – Coloring data points with LabelingFunction included

I have a plot generated by:

ListPointPlot3D[data -> labels, PlotTheme -> "Scientific",  LabelingFunction -> Center]

and I want to color the data labels. ColorFunction would work if LabelingFunction was not included. Is there a way to change the color with LabelingFunction included?

html – Export PDF file as seperate name when specific row is selected and shows result first and included an image in php

Index.php File: This file shows all records from database id wise and in last column there is buttons in every row for export the data of each specific row.

<td><a href="pictures/<?php echo $row('file') ?>" target="_blank">Download</a></td>
<td>
     <form method="post" action="export_pdf.php">
 <input type="hidden" name="id" value="<?php echo $row('id'); ?>">
 <input type="submit" name="export_click" value="Export">
    </form> 
</td>

When I press the export button of row 1. It displays records of this row in export_pdf.php file
I m retrieving the variable of $id from index.php file and using in export_pdf.php file like:

 include "dbConnection.inc";
 session_start();


 if (isset($_POST("export_click"))) {
 $id = "" . $_POST("id") . ".pdf";
 echo $id;//Displays 1.pdf It is Okay.
 }

export_pdf.php File: It displays the records of 1 selected row after press button of row 1 in html and also exporting the pdf file with results of row 1 when I use WHERE id = 1 and so on. See problem 1.

  function fetch_data()  
  {  

  $output = '';  
 
  $connection = mysqli_connect("localhost", "root", "", "sage"); 
  $sql = "SELECT * FROM users WHERE id='".$_POST("id")."'";//**(Problem 1)** Not working in pdf file
  $result = mysqli_query($connection, $sql);  
  while($row = mysqli_fetch_array($result))  
  {       

  $output .= ' 

    
 
  <tr> 
  <th width="45%">S. No.</th>
  <td>'.$row('id').'</td>
  </tr>  

  <tr> 
  <th width="45%">Title</th>
  <td> '.$row('title').'</td>
  </tr>  

  <tr> 
  <th width="45%">Surname</th>
  <td>  '.$row('surname').'</td>
  </tr>  

  <tr> 
  <th width="45%">Full Name</th>
  <td>  '.$row('full_name').'</td>
  </tr>  
       ';  
  }  

  return $output;  
  }  

  if(isset($_POST("create_pdf")))  
  {  
  ob_clean();
  //ob_end_clean();
  require_once('tcpdf/tcpdf.php');  
  $obj_pdf = new TCPDF('P', PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);  
  $obj_pdf->SetCreator(PDF_CREATOR);  
  $obj_pdf->SetTitle("SINDH ASSOCIATION OF GRADUATE ENGINEERS");  
  $obj_pdf->SetHeaderData('', '', PDF_HEADER_TITLE, PDF_HEADER_STRING);  
  $obj_pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));  
  $obj_pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));  
  $obj_pdf->SetDefaultMonospacedFont('helvetica');  
  $obj_pdf->SetFooterMargin(PDF_MARGIN_FOOTER);  
  $obj_pdf->SetMargins(PDF_MARGIN_LEFT, '5', PDF_MARGIN_RIGHT);  
  $obj_pdf->setPrintHeader(false);  
  $obj_pdf->setPrintFooter(false);  
  $obj_pdf->SetAutoPageBreak(TRUE, 10);  
  $obj_pdf->SetFont('helvetica', '', 12);  
  $obj_pdf->AddPage();  
  $content = '';  
  $content .= '  
  <h3 align="center">SINDH ASSOCIATION OF GRADUATE ENGINEERS</h3><br /><br />  
  <table border="1" cellspacing="0" cellpadding="5">  
      
  ';  
 

  $content .= fetch_data();  
  $content .= '</table>';  
  $obj_pdf->writeHTML($content);  
  
  //$obj_pdf->Output('file.pdf', 'I'); 
  $obj_pdf->Output($_POST('id').'.pdf', 'I'); //**(Problem 2)** Not working
  }  

  <!DOCTYPE html>  
  <html>  
  <head>  
  </head>  
  <body>  
  <table class="table table-bordered">  

  <?php  
  echo fetch_data();  
  ?>  
  </table>  
                
  <form method="post">                            
  <input type="submit" name="create_pdf" class="btn btn-danger" value="Create PDF" />  
  </form>  

Problem 1: Not retrieving id value in this line and shows error “TCPDF ERROR: Some data has already been output, can’t send PDF file” when I use in terms of variable.

Problem 2: I want that when I click on each row the pdf file which is downloaded renamed as id name.pdf. Because every time I export It is replacing with the previous file. It should be exported as seperate file with each id name without asking for replacing.

Problem 3: I have images in database which can be downloaded after click download button in each row in index.php file. I want to export specific row image to pdf file also and also displays first in export_pdf.php file with e.g row 1 details. Then press create pdf button and It will be exported to seperate pdf file of each row.
Thanks. Please solve these problems, I will be very thankful to you.

Looking for reseller hosting (WHMCS included + Site builder)

Greetings.

I currently have an amazing reseller plan that I use for my digital solutions business, however I’m looking for a reseller hos… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1814497&goto=newpost

email – SPF: Sender Policy Framework (Too many included lookups)

Issue: I don’t understand SPF well enough to know where to post this question

Goal: Figure out how to include more than 10 valid senders to my SPF record

I currently have a warning on my SPF record that it violates RFC 7208 because it requires too many lookups. Unfortunately the number I’ve added is the number I need (I actually only have 6 senders on there) but that turns into 12.

I can’t control what other domains do, if they are redirecting the domain they provide me for SPF also they can always change their domain again and turn my current 12 lookups to 15 for all I know.

We also aren’t allowed have multiple SPF records on a given domain, so whats the answer? What if….I actually needed 12 senders? Is SPF broken for bigger organizations that require lots of senders, or am I missing the solution?

[WTS] VPS in Europe [NL] from only $5.35 |full root access, managed support included!

VPSGet has a vision of providing best quality services with affordable prices for each customer.
We know how to cook virtual servers!

Our servers are located at Tier III datacenter in Netherlands, Europe .
Test IP: 213.108.198.4 . Test download files : 100Mb, 1Gb

VPS Features :
Free Managed Support upon request. *
• Additional discounts on quarterly, annually, or longer billing cycles.
• Full Root Access
• SSD powered RAID-10 storage (gr8 perfomance for most usage cases)
• Monthly Full VPS backups on external storage included in all packages
• 2x Xeon E5 processors per server node.
• Easy to use ClientArea: manage your account and services from one place.
• SolusVM Control Panel: separate access to manage only VPS services. + whitelabeled API reseller accounts available!
• TUN/TAP/PPP (you can use any VPN)
• 100Mbps or more connection for each VPS (multiple uplinks on each node)
• Free IPv6
• 99.9% Uptime Guarantee
• 30 days Money Back Guarantee
• Instant Setup
• A lot of Linux distributions for choise. Custom OS templates . OS templates-on-request.
• No Contract
• 24×7 Support (in-house team)
• Daytime LiveChat (CET).
• Up to 30 IPv4 add-on available per VPS for only $1 per IP for customers who using our services for 6+ monthes .
Many Payments methods available: Bitcoin, Paypal, Credit/Debit cards, 2checkout, Webmoney/Paymentwall, Payza, BankWire.
We also accept Altcoins: Ethereum, Ethereum Classic, Litecoin, Dash, ZCash, Monero, Dogecoin, Decred, BitConnect, PeerCoin, WAVES, ZenCash, Ripple. Additional discounts if pay with ETH or LTC, read more

____________________________
VPS Packages
10 extra IP’s add on available for all packages!

VZ-1
$5.35 per month
1 CPU Core
512Mb RAM
20Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
10 IPv6 included
1 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-2
$8.95 per month
1 CPU Core
1Gb RAM
40Gb Disk Space
100Mbps connection
30 Days Money Back Guarantee
10 IPv6 included
5 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-3
$17.95 per month
2 CPU Cores
2Gb RAM
60Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
3 IPv4 included *new!
10 IPv6 included
10 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-4
$35.9 per month
4 CPU Cores
4Gb RAM
80Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
4 IPv4 included *new!
10 IPv6 included
10+ extra IPv4 Add-On available
Fully managed support included
More Info/Compare

VZ-5
$71.95 per month
8 CPU Cores
8Gb RAM
100Gb Disk Space
300Mbps connection
30 Days Money Back Guarantee
Premium Managed included (+ server monitoring on request)
5 IPv4 included *new!
10 IPv6 included
25+ extra IPv4 Add-On available
More Info/Compare

—————————-
We provide a lot of OS templates for customers. Some of them are available during the ordering and the others are in reinstall list. This list is being updated time to time.
We also can add the specified OS template upon customer’s request.

Should you have any pre-sales questions please do not hesitate to contact our Sales Team!

.(tagsToTranslate)webmaster forum(t)internet marketing(t)search engine optimization(t)web designing(t)seo(t)ppc(t)affiliate marketing(t)search engine marketing(t)web hosting(t)domain name(t)social media

Vps In Europe [nl] From Only $5.35 |full Root Access, Managed Support Included!

VPSGet has a vision of providing best quality services with affordable prices for each customer.
We know how to cook virtual servers!

Our servers are located at Tier III datacenter in Netherlands, Europe .
Test IP: 213.108.198.4 . Test download files : 100Mb, 1Gb

VPS Features :
Free Managed Support upon request. *
• Additional discounts on quarterly, annually, or longer billing cycles.
• Full Root Access
• SSD powered RAID-10 storage (gr8 perfomance for most usage cases)
• Monthly Full VPS backups on external storage included in all packages
• 2x Xeon E5 processors per server node.
• Easy to use ClientArea: manage your account and services from one place.
• SolusVM Control Panel: separate access to manage only VPS services. + whitelabeled API reseller accounts available!
• TUN/TAP/PPP (you can use any VPN)
• 100Mbps or more connection for each VPS (multiple uplinks on each node)
• Free IPv6
• 99.9% Uptime Guarantee
• 30 days Money Back Guarantee
• Instant Setup
• A lot of Linux distributions for choise. Custom OS templates . OS templates-on-request.
• No Contract
• 24×7 Support (in-house team)
• Daytime LiveChat (CET).
• Up to 30 IPv4 add-on available per VPS for only $1 per IP for customers who using our services for 6+ monthes .
Many Payments methods available: Bitcoin, Paypal, Credit/Debit cards, 2checkout, Webmoney/Paymentwall, Payza, BankWire.
We also accept Altcoins: Ethereum, Ethereum Classic, Litecoin, Dash, ZCash, Monero, Dogecoin, Decred, BitConnect, PeerCoin, WAVES, ZenCash, Ripple. Additional discounts if pay with ETH or LTC, read more

____________________________
VPS Packages
10 extra IP’s add on available for all packages!

VZ-1
$5.35 per month
1 CPU Core
512Mb RAM
20Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
10 IPv6 included
1 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-2
$8.95 per month
1 CPU Core
1Gb RAM
40Gb Disk Space
100Mbps connection
30 Days Money Back Guarantee
10 IPv6 included
5 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-3
$17.95 per month
2 CPU Cores
2Gb RAM
60Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
3 IPv4 included *new!
10 IPv6 included
10 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-4
$35.9 per month
4 CPU Cores
4Gb RAM
80Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
4 IPv4 included *new!
10 IPv6 included
10+ extra IPv4 Add-On available
Fully managed support included
More Info/Compare

VZ-5
$71.95 per month
8 CPU Cores
8Gb RAM
100Gb Disk Space
300Mbps connection
30 Days Money Back Guarantee
Premium Managed included (+ server monitoring on request)
5 IPv4 included *new!
10 IPv6 included
25+ extra IPv4 Add-On available
More Info/Compare

—————————-
We provide a lot of (B)OS templates for customers(/B). Some of them are available during the ordering and the others are in reinstall list. This list is being updated time to time.
We also can add the specified OS template upon customer’s request.

Should you have any pre-sales questions please do not hesitate to contact our Sales Team!

VPS in Europe [NL] from only $5.35 |full root access, managed support included! | Proxies123.com

VPSGet has a vision of providing best quality services with affordable prices for each customer.
We know how to cook virtual servers!

Our servers are located at Tier III datacenter in Netherlands, Europe .
Test IP: 213.108.198.4 . Test download files : 100Mb, 1Gb

VPS Features :
Free Managed Support upon request. *
• Additional discounts on quarterly, annually, or longer billing cycles.
• Full Root Access
• SSD powered RAID-10 storage (gr8 perfomance for most usage cases)
• Monthly Full VPS backups on external storage included in all packages
• 2x Xeon E5 processors per server node.
• Easy to use ClientArea: manage your account and services from one place.
• SolusVM Control Panel: separate access to manage only VPS services. + whitelabeled API reseller accounts available!
• TUN/TAP/PPP (you can use any VPN)
• 100Mbps or more connection for each VPS (multiple uplinks on each node)
• Free IPv6
• 99.9% Uptime Guarantee
• 30 days Money Back Guarantee
• Instant Setup
• A lot of Linux distributions for choise. Custom OS templates . OS templates-on-request.
• No Contract
• 24×7 Support (in-house team)
• Daytime LiveChat (CET).
• Up to 30 IPv4 add-on available per VPS for only $1 per IP for customers who using our services for 6+ monthes .
Many Payments methods available: Bitcoin, Paypal, Credit/Debit cards, 2checkout, Webmoney/Paymentwall, Payza, BankWire.
We also accept Altcoins: Ethereum, Ethereum Classic, Litecoin, Dash, ZCash, Monero, Dogecoin, Decred, BitConnect, PeerCoin, WAVES, ZenCash, Ripple. Additional discounts if pay with ETH or LTC, read more

____________________________
VPS Packages
10 extra IP’s add on available for all packages!

VZ-1
$5.35 per month
1 CPU Core
512Mb RAM
20Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
10 IPv6 included
1 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-2
$8.95 per month
1 CPU Core
1Gb RAM
40Gb Disk Space
100Mbps connection
30 Days Money Back Guarantee
10 IPv6 included
5 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-3
$17.95 per month

2 CPU Cores
2Gb RAM
60Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
3 IPv4 included *new!
10 IPv6 included
10 extra IPv4 Add-On available
Basic managed support included
More Info/Compare

VZ-4
$35.9 per month
4 CPU Cores
4Gb RAM
80Gb Storage Space
100Mbps connection
30 Days Money Back Guarantee
4 IPv4 included *new!
10 IPv6 included
10+ extra IPv4 Add-On available
Fully managed support included
More Info/Compare

VZ-5
$71.95 per month

8 CPU Cores
8Gb RAM
100Gb Disk Space
300Mbps connection
30 Days Money Back Guarantee
Premium Managed included (+ server monitoring on request)
5 IPv4 included *new!
10 IPv6 included
25+ extra IPv4 Add-On available
More Info/Compare

—————————-
We provide a lot of OS templates for customers. Some of them are available during the ordering and the others are in reinstall list. This list is being updated time to time.
We also can add the specified OS template upon customer’s request.

Should you have any pre-sales questions please do not hesitate to contact our Sales Team!

GeekStorage Anniversary Sale – Get 40% Off! Overselling, LiteSpeed, WHMCS, SpamExperts Included


————————————————————————————–


IT’S OUR ANNIVERSARY SALE!

Coupon: 10ANNRS – For a LIMITED TIME only, new customers can receive a recurring 40% discount on any of our reseller hosting plans!

Coupon rules:

  • Valid for new customers only.
  • This coupon can’t be used with any other special offer.
  • Affiliate referrals are ineligible for this coupon.


————————————————————————————–

Offer supercharged website hosting to your clients with our high-performance reseller hosting platform.

Our reseller web hosting service, leveraging our performance storage and premium network, is a clear choice for your database-driven website. You also get the peace of mind that comes with having around the clock access to our expert geeks.

Data Center Location:

Our reseller hosting servers are located in Chicago, IL in the Steadfast Networks data center.

Included with all reseller hosting accounts:

* cPanel/WHM (Web Host Manager) Control Panel

* Softaculous Script Auto-installer (Hundreds of one-click install scripts!)

* LiteSpeed Web Server, PHP (5.4, 5.5, & 5.6, 7.0, 7.1), Perl, CGI, MySQL, Ruby on Rails + GEMS

* SNI Supported

* CloudFlare Enabled

* SpamExperts Enterprise SPAM Filtering (Each reseller plan comes with a bundle of domains, additional domains can be purchased if needed)

* Daily Remote Backups

* High-Redundancy RAID 10 Arrays

* Free IPv6 Addresses

* Developer Friendly Atmosphere

* E-commerce Ready!

* RVSkins Included

* FREE Website Builder (RVSiteBuilder & Site.Pro Website Builder)

* FREE Website Migrations (We will migrate up to 30 of your websites free of charge!)

* Click here for a complete feature list

We take care of our resellers:

* Included ClientExec License (or discounted WHMCS Billing Software licenses available)

* Discounted Add-on Purchases

* Discounted Domain Purchases

* Discounted SSL Certificates

* Private Reseller Portal

* Free Comodo PositiveSSL Certificate

Blazing Fast Server Hardware, Premium Bandwidth:

We SPARE NO EXPENSE for our geeks! Our newest reseller servers our purpose-built for performance using enterprise components, including RAID-10 SSDs for all storage.

US Test IP: 162.249.125.1

==============================================
Reseller Hosting Plans

==============================================

Economy Reseller
30 GB Storage (100% Pure SSD Storage)

1 TB Bandwidth


2 Dedicated IPs

cPanel®/WHM Control Panel
Overselling Ability

Create up to 30 cPanel® Accounts
30 SpamExperts® Domains (Enterprise Spam Filtering)

Site.Pro Website Builder

Daily Remote Backup

Instant Activation
Free Comodo SSL Certificate
Click here for a complete features list

Monthly: $29.95/mo., Now only $17.97/mo. with 40% off discount applied! Use coupon: 10ANNRS

Ready to order? Visit:
https://www.geekstorage.com/reseller-hosting

Prime Reseller
40 GB Storage (100% Pure SSD Storage)

1.5 TB Bandwidth


2 Dedicated IPs

cPanel®/WHM Control Panel
Overselling Ability

Create up to 40 cPanel® Accounts
40 SpamExperts® Domains (Enterprise Spam Filtering)

Site.Pro Website Builder

Daily Remote Backup

Instant Activation
Free Comodo SSL Certificate
Click here for a complete features list

Monthly: $39.95/mo., Now only $23.97/mo. with 40% off discount applied! Use coupon: 10ANNRS

Ready to order? Visit:
https://www.geekstorage.com/reseller-hosting

Ultimate Reseller
50 GB Storage (100% Pure SSD Storage)

2 TB Bandwidth


2 Dedicated IPs

cPanel®/WHM Control Panel
Overselling Ability

Create up to 50 cPanel® Accounts
50 SpamExperts® Domains (Enterprise Spam Filtering)

Site.Pro Website Builder

Daily Remote Backup

Instant Activation
Free Comodo SSL Certificate
Click here for a complete features list

Monthly: $49.95/mo., Now only $29.97/mo. with 40% off discount applied! Use coupon: 10ANNRS

Ready to order? Visit:
https://www.geekstorage.com/reseller-hosting


We are trusted by thousands of webmasters to deliver performance web hosting to them with awesome support, something that we love to do!

Here are just a few comments from our users regarding our service:

No Contracts – monthly billing available, cancel at anytime!

Instant Setup!

Free website migration!

Take advantage of our 30-day money back guarantee, 100% Satisfaction Guarantee and 99.9% Uptime Guarantee and go geek today!

Ready to order? Visit:
https://www.geekstorage.com/

Have any questions?

Email sales@geekstorage.com or send me a PM on these forums.

Los Angeles Colocation | DDoS Protection Included | 10% off for 6 Months!


Modern Solutions

Modern Solutions is an all-in-one hosting provider that started in October, 2017. Modern Solutions is a premier Windows VPS hosting company, and offers high quality Colocation and dedicated servers in Los Angeles, CA and Dallas, TX. Our Los Angeles datacenter is located directly adjacent to the One Wilshire building (one of the most connected buildings in the world), with a direct conduit into the building. We are proud to offer 24×7 support and low remote hands costs on all hardware swaps/installations. Whether you are in need of a new VPS for your business, or have a server to colocate, Modern Solutions is always willing to create a custom solution that fits your business needs. We own all of our own hardware and have a great relationship with our datacenter that allows us to offer the best possible support at all times.

===COLOCATION OFFERS===

All Colocation plans include the following:
– 24×7 Support
– Free server racking and cabling
– KVM on Demand Free
– DDoS Protection and Mitigation
– Synergy CP with Remote Power Controls

===COLOCATION PLANS===

1U Single Server Colocation

  • 1U Secure Rack Space
  • 1 AMP 120V Power
  • 15TB Bandwidth on 1Gbps Port
  • /29 (5 usable IPv4) IP allocation
  • 10Gbps DDoS Protection Included (upgradable)

Monthly price of $72 $64.8* (longer contracts available) — Purchase 1U LAX Colocation

======

2U Single Server Colocation

  • 2U Secure Rack Space
  • 2 AMP 120V Power
  • 15TB Bandwidth on 1Gbps Port
  • /29 (5 usable IPv4) IP allocation
  • 10Gbps DDoS Protection Included (upgradable)

Monthly price of $99 $89.10* (longer contracts available) — Purchase 2U LAX Colocation

======

4U Single Server Colocation

  • 4U Secure Rack Space
  • 2 AMP 120V Power
  • 15TB Bandwidth on 1Gbps Port
  • /29 (5 usable IPv4) IP allocation
  • 10Gbps DDoS Protection Included (upgradable)

Monthly price of $195 $175.50* (longer contracts available) — Purchase 4U LAX Colocation

===AVAILABLE ADDONS===

We have a number of addons that make it easy to customize your colocation to your needs. If you have a requirement that is not listed below reach out to us and we would be happy to provide a custom quote.

– Affordable IP allocation
– Low and flat rate remote hands fees
– Additional DDoS Protection available
– 10Gbps uplink upgrade available

*Discount active for first 6 months of billing

Javascript file is being included but console.log wont work

So I THINK I have configured my javascript right in that i want to inlude two files. leaflet.js and mappingsource.js and currently on the page source there exists this:

<script type="application/json" data-drupal-selector="drupal-settings-json">{"path":{"baseUrl":"/web/","scriptPath":null,"pathPrefix":"","currentPath":"hello/world","currentPathIsAdmin":false,"isFront":false,"currentLanguage":"en"},"pluralDelimiter":"u0003","suppressDeprecationErrors":true,"ajaxPageState":{"libraries":"bartik/global-styling,big_pipe/big_pipe,classy/base,classy/messages,contextual/drupal.contextual-links,contextual/drupal.contextual-toolbar,core/drupal.active-link,core/html5shiv,core/normalize,helloworld/leaflet,helloworld/mappingsource,quickedit/quickedit,shortcut/drupal.shortcut,system/base,toolbar/toolbar,toolbar/toolbar.escapeAdmin,tour/tour,user/drupal.user.icons","theme":"bartik","theme_token":null},"ajaxTrustedUrl":{"/web/search/node":true},"bigPipePlaceholderIds":{"callback=Drupal%5CCore%5CRender%5CElement%5CStatusMessages%3A%3ArenderMessagesu0026args%5B0%5Du0026token=_HAdUpwWmet0TOTe2PSiJuMntExoshbm1kh2wQzzzAA":true,"callback=user.toolbar_link_builder%3ArenderToolbarLinksu0026u0026token=xssKdKFVFD7N0FUPPcC1C7LrqMHpQFVzUhrI4cOeEgs":true,"callback=user.toolbar_link_builder%3ArenderDisplayNameu0026u0026token=-MH2NzEnTzbzMk0ZGfGgoiw7G3j_-Q1ILWBRVhIOKLI":true,"callback=shortcut.lazy_builders%3AlazyLinksu0026u0026token=N1997Wch59v-LxHku3-dD44wjkSNmhegNzlZ8jS0L5I":true},"toolbar":{"breakpoints":{"toolbar.narrow":"only screen and (min-width: 16.5em)","toolbar.standard":"only screen and (min-width: 38.125em)","toolbar.wide":"only screen and (min-width: 61em)"},"subtreesHash":"fFW4IHdcFxAYeqwFjFGFpjKbwADtToCo9LEGFmDLWwY"},"user":{"uid":"1","permissionsHash":"3e05456fe0e0014e93091ef2c6ad9fbbe0e5c07d9303f114c638bbc071d789d2"}}</script>

Whih both have settings? for the files that i want however the file mapping source looks like this


$( document ).ready(function() {
    console.log( "ready!" );
});

window.onload = "test()";

function test() {
    console.log('123');
}
console.log('test');
var map = L.map('map', {
    center: (51.505, -0.09),
    zoom: 13
});

Which should be console logging SOMETHING surely? Is there something I’m missing?

Additional files look like this

helloworld.libraries.yml

helloworld:
  version: 1.x
  js:
    js/leaflet.js: {}
    js/mappingsource.js: {}
<?php

/**
 * @file
 * Contains helloworld.module.
 */

helloworld.module
use DrupalCoreRoutingRouteMatchInterface;

/**
 * Implements hook_help().
 */
function helloworld_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the helloworld module.
    case 'help.page.helloworld':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Hello World example module') . '</p>';
      return $output;

    default:
  }
}

function helloworld_page_attachments(array &$attachments) {

  // Unconditionally attach an asset to the page.
  $attachments('#attached')('library')() = 'helloworld/leaflet';
    $attachments('#attached')('library')() = 'helloworld/mappingsource';

}

/**
 * Implements hook_theme().
 */
function helloworld_theme() {
  return (
    'helloworld' => (
      'render element' => 'children',
    ),
  );
}